I did this job a few weeks ago. I used a repair kit for about 15 quid on eBay. Was a pain to rewire the thing up using the kit because it's so finicky. Took about 8 hours over two days to take the door card off, remove the wiring (air bag, door speaker etc) and then remove the window actuator mechanism. Once it's out, the process is relatively simple but takes time and patience. The reversing it took some time too. It's a lengthy process if you're DIY'ing it.
If the wiring is just gone then this is definitely the best and cheapest option.
HOWEVER, what happened with mine is that the plastic housing for the spindle that physically winds the cable has broke. I think it must have come off the spindle and then the previous owner didn't disconnect the motor so it kept trying to wind up and down and it eventually blew out the housing. I used the kit and it fixed it but a few weeks later, the spindle just blew out the housing again as I only superglued and taped it up.
If you heard a bang then I wouldn't be surprised if something similar has happened. My advice is it to take the door card off and have a look to see what exactly happened. If nothing else, you can then disconnect the motor wiring so that it doesn't keep trying to operate when you open and close the roof.