Did you get out a multimeter and check for voltage at various places along the circuit? Check it from the hot side before the switch, then connect it back up and check it after the switch (with the pedal depressed). That will tell you if it's the brake light switch itself. Does it work as a turn signal? Do the tail lights also not work?