Why won't my music play through my earphones?

A

AC Question

I was listening to music on my Samsung Galaxy J5 and my earphones were working normally. I skipped to the next song and the audio completely cut out but the time was still increasing on the song. I wiggled the cable and the headphone jack but nothing happened so I switched my phone off and on again and the problem was still unsolved. I changed earphones and the music still wouldn't play.

My phone recognises that I have plugged in earphones as a message displays across the top of the screen and sometimes I can hear a crackling sound through the earphones when I plug them in. The sound still plays normally through the speaker when earphones are not connected.

I don't understand what has happened as it was working normally until I changed song and then everything stopped working and hasn't for around a week.