Chosen Solution

how do fix the wire and why does it break

Breaks off where? I’ve known multiple people that will open the up (if the break is inside a headphone) or cut open the part of the wire where it’s broken and they solder them back together. And the headphones still worked afterwards like new.