Try checking if the microphone or earpeice is blocked by dust or debris, clean it gently. Also, go to settings >> Sound >> Volume and make sure call volume is maxed. If the issue remains, try testing in Safe Mode to rule out any app interference, or update your firmawre. If it still persists, it is likely a hardware issue with the earpiece speaker.