If your iPhone sticks to headphone mode
If your iPhone sticks to Headphone only mode (e.g. no ringing, no signals for twitter, email etc.) try to record a voice memo -> play it back -> turn on speaker. This helped me to recover to normal mode. Update: no, just plug your headphones in and out again, might do the trick too 🙂