Always start simple.

Pull the headlights and check the bulbs first.

Then check for power at the socket (positive and negative) and then use a ground on the battery and to the socket for power. Power with a battery ground and not grounding through the socket means a bad body ground.

If you don't get power work your way back to the switch. Bulkhead connections, dimmer connections etc.