Don't pull them out by the wire, that's a sure fire way to loosen the wire on the inside. Take them out by handling just the earpiece.
I hate how often earphones screw up, but maybe I don't treat them as well as I should. Hopefully my current ones last