My iPhone 4 thinks there are headphones plugged in?

My phone thinks that there are headphones constantly plugged in, but when someone calls, I can hear my ring tone. I can also hear my alarm & timer. I have it sitting in rice right now, but I don't think water is the problem. I can't hear music, or someone talking on the phone. But when I plug headphones in, I can hear the music through the headphones, Please help, this is frustrating!

You should take it to a local device repair shop, I would love to be able to help but the only suggestion I could think of it maybe restore it or put in rice in the sunlight for a whole day

Try restarting by holding down the home and power button at the same time. Your screen will go black and the phone will instantly restart. My friend always has me do this to fix my ipod and iphone I hope it works for you too!

Did you put that switch up on the side (I don't kno I only have an iPad)