Have you got power to the brake light switch on the master cylinder?
If not trace the wires right back and check all the fuse terminals are free from corrosion.
If you have power at the brake light switch, check the switch is working, then if it is the problem is in the light units, maybe a poor earth.