How do I fix my earphones?

My earphones don't work sometimes. When I turn it on, the small light near the earphone jack turns green and then orange. When it does that, the earphones don't work. When I turn it on and the green light only turns green then that is when the earphones function well.

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0