what controls spark on a 2006 yamaha bws 50cc?

we were given this bike and it has no spark, it cranks and has fuel and all that but what is it the tells the coil to fire, we have already replaced the ignition box, the coil and checked the wires,
 
Back
Top