your description is very vague. does it run fine a low rpm like if you were just putting around the yard but when you accelerate it cuts out? or does it barely run/idle?
#1 put a fresh plug in it. #2 if that doesn’t fix it pull the carb off and clean it making sure the jets are not plugged especially the main jet.
could be some other things but without hearing more details i don’t know
try the plug… I had a lil blaster like 2 years ago, it had an electrical problem, turned out there was a wire inside the stator that was broken off… fixed it and she ran like a champ… well until Wags blew it up!