When iPhone gets stuck in headphones mode, you cannot hear any of the keyboard clicks or text message alert tone. No audio or sound works through the normal speakers output. The iPhone Speakers stop working suddenly. What weird is that nothing seems wrong when you plug the headphones in. What causes this is that iPhone improperly acts as if the headphones are still plugged in. Sometimes this happens because of the headphones jack being dirty, wet, or something lodged in it.
One of the obvious symptoms to judge whether your iPhone or iPad got stuck in headphones mode is that you can see "headphones" when you turn the ringer volume up/down. Like the icon blow:
Some people would think the headphones jack is broken and take the iPhone to Apple Genius Bar for repair. Well, things actually are not so complicated. You can fix the iPhone out of headphones mode quickly with just a set of earphones or a q-tip sometimes.
The easiest way that most people did the trick is to insert and remove the headphones at least 7-8 times.
If your iPhone was water immersed, you should make sure the iPhone headset jack is fully dried. Use the hair dryer to blow into the headphone port and lock the phone for a while.
Press and hold the Home and Power buttons at the same time for about 10 seconds till the white apple logo appears. Keep pressing till the screen goes black.
The iPhone should get out of headphones mode successfully now. Toggle the volume up/down buttons should show Ringer as it supposed to be like the image below: