The electric lock connector wires need to be connected to a power switch and the switch contacts closed for the controller to operate. The electric lock wires could be bridged together for testing purposes.
The power switch can be tested by checking its continuity when it is in the off and on positions
If all of these connectors are used and the bike still does not run then there are troubleshooting procedures to figure out what the problem is. Here are links to some of these procedures.
Battery Pack Load Test: https://electricscooterparts.com/loadtest/index.html
Throttle Test: https://electricscooterparts.com/throttletestingguide.html
Since the bike is not currently running the battery pack Voltage (when under load) could be tested by wiring the battery pack directly to the motor and then reading the battery pack Voltage while applying the rear brake.
The motor can be tested by wiring it directly to the battery pack. If the motor runs when wired directly to the battery pack that proves that the motor runs, however, it does not prove that the battery pack is good. The battery pack needs to have a Voltage level of around 23 Volts or more when it has a load on it to be able to operate the controller. The controller shuts off power to the motor when it detects that the battery pack has less than 23 Volts in it.
Please let us know how it goes.
Tom Forbes