clean the headlight wiring plug connector terminals, and the connections on the light. also take the bulb out and clean the bulb holder's terminals and the bulb. try bending the connectors on anything that doesnt have a tight fit. add a squirt of wd40 on all connectors so you dont have to do it again in a few weeks. should sort it out