Start by replacing the bulbs. If that doesn't work, replace the sender switch and if necessary its plunger. If it still doesn't work, perform an electrical continuity test on the brake light circuits. If that doesn't work the vehicle is probably such a junker that you might as well just torch it for the insurance.
All of the above assumes that, ah, your brakes work properly in the first place.