Hello Abdul majeed,
May I know of you are using a headset or not?
both with and without headset, microphone did not work?
Did you allow the access for program to use microphone?
(Settings>Privacy>Microphone>Allow access to the microphone on this device)
Thank you.