It sounds like there is a fault in the wiring somewhere between the four way multi connector and where the harness splits to the front and rear motors.
The brake switches are supposed to ground out the brake signal wire from both controllers to cut the power during braking (and also to disengage the cruise control if activated).
Alan