When the engine dies and won't start, the first step is to check whether the engine has spark at all 4 spark plugs (click Spark link in my signature) and to listen for whether the fuel pump primes when the key is turned from off to ON(II).
Also check for CEL codes. See the Codes sticky at the top.
In the meantime, have AutoZone test the ICM inside the distributor. You'll need to remove it for the test. Also resistance test the coil (see Spark link in my signature).
The link and diagrams below may also help: