I would start with your brake light switch. Get you an old business card and cut a piece off, fold it a couple of times, and tape it to the pedal where the switch contacts it. If that makes them work, I’d get a new switch. Although I’ve heard of people taking them apart and reassembling them, they’re designed to be one-time self adjusting. The mechanism ratchets to where it needs to be to work. If it’s pushed past that point it won’t come back out easily.