You sent the +5V supply for the throttle up the throttle sense wire to the controller, so it thought you wanted WOT. You can try swapping the other 2 wires if you think that's the issue. FWIW, when first getting an ebike going I like to only connect the minimum components needed to run, throttle, controller, battery and motor. Then add CA, ebrakes, etc one at a time. Improperly set CA's or ebrakes or whatever else can prevent a bike from running, so start with the minimum and add. It keeps trouble shooting easy.