I only get sound from the dock
My iPhone 3GS has stopped producing sound, both from the speaker and through headphones. If I plug it into my speaker dock then I get sound as normal, so I know it’s actually playing. I’ve tried a factory reset and that has made no difference. Mike Howerd This is a hardware problem. When you connect your iPhone to the dock, pin 11 on the 30-pin connector is grounded. This tells the iPhone to route all audio through pins 3 and 4 on the 30-pin connector. Lint or muck can electrically short out pin 11 or physically bend it into contact with the case. Try cleaning it carefully with a cotton bud.