An internal combustion engine needs fuel, oxygen, and an ignition source. If any are missing, it would stop running.
Yes this can cause the engine to shut off. This the main input to the engine ecu.
A poor seal or a split.
It ran out of gas
The overheat of the engine. You could find some information on Wikipedia.
the car will break or shut off automaticly
most likely a short in the secondary wiring system.
A bad timing belt could make the engine shut down but it would only happen once, not sometimes.
you have a bad crank senser
Mine was doing the same thing. Changing the coil took care of it.
Failure to maintain the proper engine oil level could result in serious engine damage leading to the engine to shut down.
The fuel is shut off to shut the engine off.
A bad fuel injector can cause an engine to continue running, for a few seconds, after the engine to shut off. The engine continues to run because of excessive fuel in a piston.