Headlight switch shaft/knob won't click and lock in.

Remove switch,install rod and then pull it to on position. Remove rod and try install again.
Good chance its in the off position.
I replaced a switch many years ago, and inadvertently broke the part that locks onto rod.
I did manage to get switch apart and change the broken piece.
Robbed it from the faulty switch.