First of all, check whether electrical or fuel.
1. Pull off a plug lead, attach a sparking plug with its body resting on earthed metalwork. Crank engine to see if its sparking.
2. Remove air filter, and spray some easy start or even brake cleaner into the intake whilst cranking engine.