the switch could be sticking or have a loose conection, the way the switch works is this: it sits on the shaft of the brake pedal, when you press the pedal the switch (its a push button) gets pressed, also it has a fail safe that if you take it off ant the button comes out the breaks turn on.
see if you can find it where the pedals are.
see if you can find it where the pedals are.