I'm not being a dick, but FFS! Are you joking? What are you gonna do out in the trail/dune when your bike shuts off?? Pull out your phone and hope for enough reception and post a thread and ask what happened?
Use your head! What have you checked so far? Are all the plugs connected? Is that push button good? Did you break a wire? Did you run a continuity test across the harness to see if there's a short/break you can't see? Did you check the coil,stator, plug caps?
What did you do already to check? Not
" my shit box broke, what happened?"