iPad Air 2 microphone not working since iOS 11 update
Backup the iPhone and then restore to factory. Then as you set up the iPhone restore the backup.
If the issue persists. Restore again and then dont restore the backup, set up the phone as is. If it works then your files have corrupted the audio. If it doesnt work, then it needs to be repaired. Take it to the Apple Store for repairs.