Car lurches and loses speed and power then dies

My car (Nissan 1998) runs normally for miles. Then sometimes it just starts lurching while in motion when the gas is depressed and looses speed, as if not getting fuel. Previous times it dies after this. The last time I was on the highway going 70 and I pulled over before it lost power and died completely.



Just had new brakes installed, new distributor, all new belts, and an oil leak fixed by a mechanic.

What happens after it dies completely? Does it just start up and run as if nothing happened? Does a warning light come on? How full is the gas tank when this happens?

See if the coil wire is pushed in all the way on both ends. It’s the one that goes to the center of the distributor.