Thanks so much this worked for me! I tried all the solutions proposed here, cleaning with qtip, needle, putting it in freezer/fridge, sucking/blowing with hairdryer, resetting hard resetting, calling with headphones and pluggin unplugging it etc. 50 times plugging in out....
What worked was putting on spotify so you can see what happens if you plug unplug it pauses the song. So i played a song and started fiddling with a needle and sucking the jack, surprisingly sucking the jack while playing a song in spotify made it to pause and voila after that it worked! I put play and it switched to normal mode showing the volume when hit the volume buttons instead of headphones! Thanks again! Hope this helps for others