If your e-bike motor stopped working after a tire change or rear-wheel removal, check wheel seating, brake drag, motor connections, wiring and sensors before assuming the motor or controller failed.
The ABS light means your anti-lock braking system has switched itself off after detecting a fault, most often a wheel speed sensor contaminated with brake dust; your normal brakes still work, but ...