As bill said, it could be the ignition switch. Once one thing has a issue, it could cause what they call the Domino Affect. This could be anywhere from a mechanical issue to a electronic issue. Its could just be a simple drivability issue like a vacuum leak or just a loose connection.
There are numerous things that could cause a car to shut off so u have to start from somewhere and consist of starting with the most simplest diagnose then to the more time consuming ones if necessary.
In this situation, i would check that ignition switch, the spark plug gaps/wires, check the fuel relay, check ya fuel PSI(system possibly clogged), Vaccuum leaks, Alternater voltage output, check oil PSI, do a compression test, etc. Theres a lot of possible issues but u start with the most simplest.
U might wanna make friends with a OHMs meter, OBDII scanner, and some PSI guages!!!
Good luck, DEE!!!