No sound with iPhone 4S problem?

I have a iPhone 4S. Today my sound was working fine. Now when I plugg in my charger, I hear no sound at all, but when I take it off, I can hear the sound again. I plugged my phone into another charger and it did the same thing. No sound unless I take it out. So do anyone know what the problem?

You mean u plugged in the earphones.

well if 2 earphones don't work on the same phone the phone is broken.

4S warranty lasts only 1 year so apple won't fix it.

you will have to take it to an electronics repair center. It's not cheap but it could be worth it.