Possibly a short or bad brake switch. You will need to do some electrical diagnosis to determine the cause. Witht the brake switch connector connected check for power out of the switch to determine if the switch is malfunctioning. If you have power in and out with pedal released switch is bad. Also check to be sure the switch is positioned correctly.