Engine dies, but turn the key off and back on it fires right back up
And if it does start, same thing. Check the power going to the coil and going to the ECU. Ammeter will be no help 'cause current will be flowing from the alternator. Or rather, it ought to be! Then when it does you'll have a reference. The problem is either in one of the devices (ECU, Coil, Distributor) or in the power feed to one or both (ECU and coil). If there is power then there is the possiblity of distributor not signalling or the ECU not getting the magnetic pulse. Do the easy checks first to narrow it down. Just typing it now 'cause I won't be at the computer later.
(I'm assuming here everything else works when there is no spark. Not sure? turn on dome light or step on brake, then check somehting that requires the key on - radio - heater - wiper.)