When making calls the top speaker(that you hold to your ear) is extremely quiet: have to make calls on speakerphone.
Also when video recording, the sound pick up is delayed by around 5 seconds
If the phone is an iPhone, make a Genius Bar appointment with the nearest Apple Store to have it checked out. That is my recommendation.
I’d definitely take it to the Genius Bar at a nearby Apple Store or contact Apple Support.
Welcome to iMore
Assuming you tried to raise the earpiece volume while in a call with no success then follow the appointment advice
And if you have time we the community would like to know how you made out
I once saw this on a site if on your keyboard you type ##update# it would fix it.