First thing you need to do is to check all electrical connections, making sure they are clean and tight. Don’t forget the ground to chassis connection. Second you need to have the battery load tested to find out if it is really good. Your local auto parts store normally does this for free, but make sure you charge the battery first. If it is good you need to test the charging system using the procedure listed in this manual. I know that the manual may not be correct for your engine, but I’m guessing as you provide no engine numbers. If the battery and charging system test good, post back with all unit and engine numbers and we will give you more guidance.
https://www.manualslib.com/manual/1207216/Briggs-And-Stratton-276781.html