The wiring looks correct to most of the diagrams I’ve found. And my code number is 5514. Idk if this helps but I was attempting to weld with it again...
Do you have a breakaway switch on the trailer? is so pull it and see if the brakes work then... if not problem is on the trailer side... if breakaway...