If no walk assist then one would expect something more terminal , so likely a controller issue or motor hall issue.
Fault finding is the only way forward.
The 5v rail can fail, It will need a meter to check voltages and access to the wiring via connectors to probe the wiring fro testing ...