We will probably need a few more details than that for a diagnosis. If you can get the rear wheel off the ground try removing the spark plug. Then while hand turning the wheel hold the metal side of the plug against the engine and see if you have a spark. That would be a simple first test anyway. An engine needs three things to run. Air, fuel, and spark. So start studying and eliminating possibilities until you find it. Good luck.