iPhone 4 microphone not working in phone calls but working in other apps
2 mics

You have 2 microphones on your iPhone:


One for normal calls, this one is broken in your case
One for environment sounds. This one is used for video conference calls, video's, sound recordings. This one still works.


My suggestion is to go to iFixit and replace your dock connecter. This replacement also fixes your mic.