You said the headlight switch was unplugged.

Did you switch wires, maybe?