The spark problem starts at the magneto and ends at the plug. Check to be sure that the wiring connections are good and that the kill switch isn't shorted. If those are OK then make sure your plug wire is contacting the CDI. From there you can just start swapping parts to see if it fixes the problem.