Headphones won't pause

I love these headphones, however, when I remove them, the music does not pause. Is there a fix for this?