What happens if you run a ground from the headlight and a hot lead from the battery bypassing all the wireing? Does the headlight work then?
Start with the basics check all your grounds and then check all your connections, cleaning everything as you go.
Start with the basics check all your grounds and then check all your connections, cleaning everything as you go.