Did you try this method?
If your microphone isn't working, head to Settings > Privacy > Microphone. ... Below that, ensure “Allow apps to access your microphone” is set to “On.” If microphone access is off, all applications on your system won't be able to hear audio from your microphone.