If all of the switches are in good condition then I would try rebleeding the system and try to get out of the lever and foot control all of the ply you might have.
It happened to me - I was running with a little play on my foot control so I rebled the whole system and have not had any problems. You also want to check and make sure that the brake switch/plunger isn't stuck on the brake housing. As far as the hnd control, Mine hasn't worked for years and my brakes are good. It all depends on the person I guess.
There is a thread here where someone is having an issue with the hand brake not working. Do a search and see if they resolved it and what the problem was.
That's right Son