I assume it is broken in the middle somewhere. I would think the wires would be 2 different colors. Probably a red and a black wire
And yeah, you can also just twist them back together and cover with electrical tape in a pinch.
If the wires aren't different colors, can just hook them up one way and measure the output to see if it's center negative or positive. If incorrect, then switch wires