Koalar has a point. Losing the headlights suggests they are getting switched off which would be the indicator/lights stalk. controls.
Earth faults tend to affect lamps with similar power such as brakes, indicators and tail lights. You have to follow the black wires back to where they are bolted to the car body. Just have to trace them along. Do front AND back as if one is dirty the others wont be much better.