Sir Nick1212 . . . . .
Seeing the originals treatment and the fact that SMALL / THIN housing PROBABLY / ASSUREDLY being ultrasonically FUSED together, precludes the using another another new plug, with factory attached strain relief, plus its new cable and HOPEFULLY the use of a LONGER interconnecting cable.
Which you would just use to replace what you initially had passing into the case.
With what you have now been dealt, and if that is a hard case male plug.
Consider initially pulling the electrical tape, cleaning off all of the smuck and prep the plug shell and case sides to receive two epoxy affixed plastic "splints" . . . . . one on each side.
Otherwise, with your dangling free "doggle" . . . . . I can see a half life expectancy of 3 days, until again experiencing a broken loose wire connection.
VIEWING:
View attachment 29057
73's de Edd