If you've done the service menu to check for microphone and it works, then you can try some of the following:
Go into settings, apps and in the top right select "show system" find the app called "phone" and clear the data and cache. See if that works.
If not....
Start the phone in safe mode and see if it works in there, if it does, it means a 3rd party app is using the mic when it shouldn't. Look for recently installed apps that use the mic and remove to test.
If not, try backing up using Xperia companion and performing a software repair, this almost certainly will fix it.