Try them in another device like an iPhone, iPod, or any other mobile device and try to duplicate the problem. If it doesn't happen, then you have a short in your headphone jack. Don't use it anymore as you risk possibly damaging other components in the computer.
If you are able to duplicate the problem on a different device then you have really, really bad luck with defective headphones.