Washing the bike you have likely had water ingress on one of the 5v lines, as they all share the same pcb tracks. The issue could be any where, Moisture on the throttle, display, PAS or ext speed sensor if fitted or even the controller it self.
I doubt it will be the motor unless you have...