Welcome to the forum.
There's probably a sensor attached to the cranks to detect when you are pedalling. That could have come a little bit unseated so it isn't sensing. Alternatively, the cable from it to the controller could be damaged, or disconnected at one end or the other, or the sensor itself could be broken.
Have a poke around, and if you can't see the issue post some photos.