When I'm on a call, the speaker button symbol is locked to gray.

I'm the owner of an iphone 5c and now I have a problem with the sound.
With an incoming call neither me or the caller can hear each other.
When I make an outgoing call it's the same way around.
Is there anyone able to give me advice about how to solve this trouble?

Original thread: https://forums.imore.com/threads/when-im-on-a-call-the-speaker-button-symbol-is-locked-to-gray.378848/