Assuming the flywheel is good, there is only a couple of things it can be. Coil, points, and condenser. Also, check the wiring to the switch. The switch works by grounding out the ignition. If the wire is worn through, it could be grounding out unintentionally.
Put a screwdriver or something steel to the magnets of the flywheel to make sure that is good.