Receiver is not working during calls. Can’t hear voice without turning on speaker. Samsung A50 (Android9 Pie)

Called number getting the voice properly. Voice recording is also OK i.e. Mic is working fine. Before that receiver was working fine but Mic was having issues (called person was not able to hear my voice & I was getting his voice clearly). Headphone is also not working. Is that motherboard issue or any software related issue? Phone Model: Samsung A50 Android 9 (Pie) Version