How to troubleshoot your iPhone's microphones if they aren't working
Once you've identified which of the microphones isn't working, begin troubleshooting.
Make sure nothing is blocking the microphone
Ensure that the microphone isn't covered. Take any protective cases off of the phone. Make sure that your fingers don't block the microphone when you're on a call. Unplug accessories and disconnect any devices that are connected via Bluetooth, especially headsets.
Remove any debris from the microphone
Use a compressed air can to blow air carefully into the microphone. This will remove any small debris that may be blocking the sound.
Install the latest iOS software
Make sure that you have the latest version of iOS installed on your phone. If you're having trouble updating your phone to the latest iOS, you may have to follow a few other troubleshooting steps.
Reset your network settings and restart your phone
Lastly, try resetting your network settings. Note that by doing so, you're also resetting Wi-Fi networks and passwords, cellular settings, and VPN and APN settings, so you'll have to re-enter any previously stored Wi-Fi passwords.
If this doesn't work you can try simply restarting your device. And if all else fails, contact Apple Support to figure out the problem.
Related coverage from How To Do Everything: Tech: