Two questions come to mind.
- Did it die like you just flipped a switch?
- Did it chug, cough and then die?
If it is the first question, then most likely you have an electrical issue and most likely an ignition system problem. Most likely just putting in a new spark plug will not resolve the problem but it is an inexpensive first step to resolve the problem.
If the lawn mower chugged, coughed and then died, you have a fuel system problem or an internal component problem. This requires more in-depth troubleshooting to determine what the problem is. But check the air filter to see if it is clogged and if so, replace it and test the mower. You could also start it without the air filter to see if that was the problem. Just try to not let any debris such as grass clippings get into the carburetor.
If these simple fixes don’t solve the problem with your lawn mower dying in your yard, professional help is in order and you can find a lawn mower repair professional in your area by visiting our Locations page for assistance.