The only wires you need (correctly) connected for the controller to actually turn the motor are the power, "ignition", hall sensors, phase wires, and throttle. The "ignition" wire needs to be connected to to the battery, the same as the main power line (many people just tie them together)...