Hi and welcome,
You forgot to mention which motor and speed controller you have.
If you have a Magic Pie or the BAC-028xP controller and one of the HSB hubs it should work automatically.
How to work with motor hall-sensor malfunctions:
The controller will detect motor hall-sensor failure and make 2 beeps of sound, and then it automatically
enters into sensorless control mode. Turn the throttle to run the motor. You may need to push/pedal the
ebike or vehicle a bit in case the motor does not move from stall (This is sensorless control limitation, but
happens seldom).
If you are using a mini motor, it probably won't be possible to run it in sensorless mode, as the motor may need to be turned before the controller can power it in sensorless mode, and this can't be done with most mini motors as the freewheel device inside prevents the wheel from turning the motor.
Alan