Does this mower have one of those little rubber primer bulbs, and if so does it have a hole or tear in it. This sometimes can cause the carburetor to not get the fuel it needs to stay running. You can buy a replacement from many small engine repair places and they are easy to replace. While you are doing it a good cleaning out with carb cleaner wouldn't hurt either.