Fixing headphones is pretty cheap. You can do this repair for less than 2$, assuming you have solder on hand.
1 x Pair of Broken Headphones
1 x 3.5mm Stereo Jack (Jameco
5" x Heat Shrink Tubing (Jameco
Wire Strippers (I just used my leatherman to strip the wires)
Heat Gun or Matches (You only need this if you use heat shrink)