Quote -
same problem with me, I just bought for two weeks, and no sound even the silent switch has turned off.
Maybe I've a solution here. I suggest that you press in the right corner of your iphone screen(near home button). I tried that and suddenly I can hear the sound again. My friend also did this, and its worked.
This method worked for me. Not sure on a long term fix. Maybe be a loose wire.
Unquote -