You answered your own question, rear no odo reading (and doesn't work ) but front has odo reading and works.
It needs an odo reading , one assumes the hub has an internal speed sensor as it is 9 pin. Without the odo reading some control systems shut down.
Also are you 100% that the motor...