Use starting fluid to see if you can keep it running. If you can, it’s a carb/fuel issue. If you can’t it’s an ignition issue, or maybe it’s getting too much fuel. If you can narrow it down to carb/fuel, make sure the carb is getting sufficient fuel to it. What kind of carb do you have? Is it fixed jet or adjustable?