IPhone 4 has no sound coming from speaker?

I have an iPhone 4 that is jailbroken on iOS 6.1.2. The phone works perfectly except for the fact the speaker does not work. I've tried hairdryers, rice, any "drying" methods. To my knowlede, nothing has made the phone wet. Everything plays when headphones are plugged in: the lock/unlock sound, ringtones, phone ringing, keypad when texting, etc. All of that works when the headphones are in. When they are not in, no sound whatsoever comes from this phone. Help! (PS, yes I've tried jailbreaking the phone and using ifile/iexplorer method of removing the file that makes the phone think it's in docking mode.)

I think you broke the outlet where the headphones go in so when you pull them out it still recognizes. It as being in there. This happened to my computer. You will have to get the outlet replaced or get a new device