Charge the battery well and test the battery and alternator.
Battery test. Engine off, headlights on for one minute. Voltage across battery terminals should be 12 to 12.5.
Alternator test. Engine running, voltage across battery terminals shold be 14 to 14.5.