There is a hard fault stored in the ESP system. If disconnecting the battery and touching the positive and negative cables has not cleared the fault- the fault codes must be deleted with the scantool.
It will show which sesors or connections are faulty to determine precisely the cause. There are so many different sensors connected to the system, so it is not worth guessing.
But definately recheck the connections of the wheel speed sensor on the repaired wheel hub.