Microphone is not working in iPhone 4s
It sounds like one of the two mics on your iPhone 4 has failed.  One is used for phone calls and the other is used to pick up ambient noise for noise cancellation and is also used during speakerphone calls and video recording.

If you replace the Dock Connector, that'll get you a new ambient mic.