The quality of apple earphones and charging cables is not good.
I've lost count of the number I've had to buy to replace them.
You could try customer service to see if they will help but otherwise get new ones from Amazon.
The best number to call on appears to be 0800 587 4005
Track usage, upgrade and get support with the My O2 appDownload My O2