I have been having this problem with my ACER Aspire E5 Series laptop for a while.
When I use my earphones with the laptop, it will work for an amount of time before cutting out and playing through the speakers instead. (It never plays through both the earphones or speakers - just cuts from one to the other) In order to make it play through the earphones again, I have to unplug the earphones and plug them back in.
I was wondering if this is a software problem or the headphone jack itself is broken. Thanks!