Sometimes a tight bend in the wires going up to the light is developed. As the hood gets opened and closed for years the back and forth bending can break wires inside the plastic. If you have a mult-meter, put it on Ohms and test the wire leading to the Head light and dont forget to test the Ground . Put one lead in the plug and the other at the bulb and see if you have continuity . Try this in several hood positions.