Like has been mentioned, you need to first diagnose, whether it's a charging system issue, or a headlight circuit issue .
Start with the easy items, the battery cables for security and general condition (corrosion), negative or ground cable, where it bolts to the transmission .
What kind of battery do you have ?
If it is a serviceable type, how does the level of electrolyte in the cells look ?