Just like his colleague "tarkan1" said, it would be useful to take a photo and even the simplest meter. If it did not break off at the jack itself, the matter is quite simple, you just have to solder wires of the same color to each other. They are insulated with this colorful 'varnish' so to be able to solder them you have to burn it,

And then scrape off the burnt paint. Remember that the more carefully you do it, the better the sound you will have. Also remember that after scratching (if you burn the entire exposed part) all the wires will be colored copper (which is poor in my photos), after soldering, you must insulate them. The easiest way to do this is with heat shrink insulation.
If, on the other hand, you do not have sufficiently long wires from the jack, you can as a last resort (I do not recommend) remove the rubber from it (remember to put the heat-shrinkable insulation before soldering) (better not to pull the metal part because the sea breaks, it is better to cut it or "shoot") . Then you know what and where you solder.