Just to help you out on this and maybe other forums.
Post numbers of either the mower or engine. In this case you have an unknown running issue so we need both. Could be a switch (mower) or dirty carburetor (engine).
We don't need an entire mower history of where you got it and on what day....... How big the deck is most of the time.
Tell us what it is and isn't - doing like this.
1.engine doesn't run
2.starts but dies a few seconds later
3.I have spark
4.could be a safety switch, dirty carb or I forgot to open the vent on top of the fuel cap.
P.S.
making a video and posting to youtube or taking pictures help us a lot.
Here are all the numbers I could find:
On the back of the mower below the motor: MODEL 2691526, REV 00, SERIAL NO. 4001502015
On the right side of the motor above the rear right wheel: MODEL 31R777, TYPE 0052 G1, CODE 200316ZD
On the engine cover: Serial #: 2003160516448, Model Number: 31R7770052G1
Also on the engine cover: Engine Family: LBSXS.5002VV, EU: e5*2016/1628SYB1/P*1050*00, ECS: EM 80087075
It is:
1. Showing spark at the end of the plug when turned with the pull start.
2. Starting, then stopping immediately when using the pull start.
It isn't:
3. Making a peep when the key is turned. Not even a click.
4. Running.
It was:
5. Running just fine like a brand new mower should with no signs of trouble prior to it stopping suddenly. No rocks or sticks were hit right before it stopped. I was driving in a straight line, on level ground, mowing San Augustine grass.