the brake lights are mechanically controlled by a small switch on the lower firewall next to the pedal shaft, likely that's the problem, might be the arm that activates it bent or broke, or the switch itself is defective
Bill
from your pic it looks like the stop switch Bill refered to is broke.
It should have an arm on it.
It should look like
this