Carb issues are the culprit if you have spark, compression and air.
A stuck float will flood the cylinder, you will not fire and you will have fuel diluting your oil.
A clogged jet will starve the cylinder, and it will be too lean to fire.
The fix is a good carb cleaning, if you can take the bowl off you can test the float and make sure it seats properly when in the closed position, vinegar / water at a low temp boil will clean brass jets like brand new.
A way to keep this from happening again is to run Marvel Mystery oil or TCW3 two stroke oil (1 ounce per 5 gallons) in your gas . this lubricates / cleans entire fuel system and keeps gas from going bad, lubricates intake valve, and top piston ring.