Default [Q] Htc earphones not being recognised

I have a Htc one M7 and it is not recognising the earphones which came with it. It is recognising all other earphones and headphones but not the ones i got from HTC. Also when i try to use these earphones on any other devices, they work fine!
They aren't just working with my phone ? What should i do now?