Does the engine falter and die as if it is running out of fuel, or does it stop more abruptly?
The engine slowing gradually to a stop could be fuel starvation or incorrect mixture.
A suddent stop could be due to a mechanical problem such a too little clearance between the piston and cylinder bore.
HTH
Anthony