I had a 3.1 in my '94 Z24 and had a similar problem. Car would shut off while driving and sometimes it would re-start and other times I had to leave it sit a little while. My problem was the coil pack. If I remember it is a rectangular box on the front of the engine where the plug wires connected.