If supply cables from controller to drive motors are okay, if battery is okay, if terminals(controller, drive motors) are okay, it's most likely bad controller. To replace a controller you'lll need a tech with diagnostic software to set trucktype etc, unless you have truck with same options, same year etc.
How Did you go with error 1307 ?
Any other reasoning for this error as I have same thing.
Can you explain where to check the wiring
And does this error give fluctuations in voltage ?
check the isolation of the pump motor to chassis. or chassis wiring
Regards