Hi irfansixer4 zulfiqar
Can you please try the below troubleshooting and confirm:
If the speaker is not working, try SMMI test to check if it is related to hardware.
How to Enter SMMI_TEST (test hardware)
Go to Calculator=>type " .12345+= "
you will be entered to SMMI_TEST
Factory reset your phone once, Please confirm your software version by going into setting => About