You have a new and seperate problem . I need to look closer at the wiring diagram cause there is a separate circuit for brake light that should not effect ignition coil killing the motor. Dont do anything yet. Leave the blue wire alone for now. Post some pics to show the overall condition of ped. Handle bars, wiring above motor and tail light.