Replaced speaker, still only faint static from speaker
I inherited a busted iPhone 4, and would like to get it working to replace my aging 3GS. It had a cracked back, a tired battery and just faint static from the external speaker when my sister gave it to me. I replaced all three components with the help of ifixit. All is well, except the speaker still only makes faint static/crackling sounds. The odd thing is that I tested the phone with the PhoneDoctor app, and the speaker plays the test tones with no problem, with the mic picking them up fine and passing the test. The volume buttons show the normal "ringer" icon and shows that it is turning up and down.
So, the speaker CAN play sound, the OS thinks it's playing, but what's actually playing, for system sounds, iTunes music, YouTube videos etc is just very faint static. One more oddity is that the static continues for four or five seconds after the sound should have stopped.
The headphone jack seems to be clean and functioning normally. I've cleaned the charging port with a stiff brush and alcohol. I've reset the phone several times. The speaker is brand new, but the behavior has not changed.
I hope that was a thorough description of my problem. Any suggestions would be appreciated.