Don't know how the alarm stuff works on yours; you'd have to refer to it's manual or wiring diagram if it has one (if not, your guess is as good as any; there's no standards for this stuff, even if we had any idea of what actual controller model and brand you had, since you haven't provide any information about that, just a couple of pictures showing a bunch of random-seeming wires and what is probably the main board of some random controller).
It may have to have all those alarm wires disconnected except when wired to an alarm, per the alarm's wiring diagram *and* the controller's wiring diagram...if not available, safer to leave disconnected.
(it's easily possible to damage or destroy a controller by connecting wires you don't know exactly what they are for; you can connect things intended for low-voltage-only to battery-voltage-stuff, and POOF. )
Do you have your "ignition" or "keyswitch" or "doorlock" wire connected to battery positive? Most controllers require this.
If the controller is intended to work with a display, you may have to have that wired, connected, turned on, setup, and in the right assist mode to allow throttle operation.
If the controller is intended to work with a PAS sensor, that may also have to be connected *and* you might have to be pedalling for the throttle to work, as well as being in the right assist mode, etc.