Read this support guide:
If the microphones on your iPhone, iPad, and iPod touch aren't working - Apple Support
Check also that nothing can obstruct the rear microphone activity.
If you get no help, have your device inspected at your most convenient Apple Store or Authorized Service Provider. They will give you all the available options.
Apple - Find Locations - Location Selector
Regards
Giulio