Default Earphones strange problem !

Hello everyone I have an HTC one 801n (European version) it's completely stock s-on and bootloader locked my problem is when I plug the earphones that comes with the device it's not detected it was working great and gave great sound quality the strange thing is that when I plugged them into another phone it works fine and when I plug another earphones into my HTC one it works fine too I've tried a factory reset but the problem is still there any solutions please ?

Sent from my HTC One using xda app-developers app