When I plug a headphone into my Nexus' audio port, the headphones simply don't play any sounds or music. The device seems to detect them, because the built-in sound output stops working. I tried it with another headphone and it didn't work either. There is no error log output.
It really sucks, because I can't hear any music.
How can I solve it?
(Galaxy Nexus with stock Jelly Bean)
I own an OG Droid and a Droid Bionic and both phones eventually had similar audio jack problems.
On one phone I found the issue to be a wad of dust crammed in the jack which I had to fish out with a [enter your choice of small pointy tool].
It could be a result of the internal contact points being pushed back from repeated tension. This would weaken the contact with the audio cable. In your particular case I don't think this is true however.
Other things you can try:
I also had this problem. I thought something was wrong. As soon as I inserted the headphone jack the sound got cut off and there was no sound coming thru the headphones. I tried pressing the volume button and found that it was turned all the way down by default. Now there is no problem
My fix was to first play the media/music like first put a song or first open a game , when the sound is playing plug in the headphones or earphones
I faced a similar issue. Tried increasing, decreasing volume.. removed, put back headphones... nothing worked.. So.. did a restart of Samsung S7 Edge and it started working...