This may be restating the obvious, but since you didn't mention it, I will ask - Have you tested the headlight itself? If you have a known, and good working headlight, the next thing to look at old be the connections to make sure power is getting through them. Corrosion will play nasty tricks.