99 GT engine cuts out going down the street

My car would run and drive just fine, but randomly cut off, no warning at all, just dies. It would also start right back up.

Things I replaced camshaft positioning sensor, IAC, cleaned MAF, Fuel pressure regulator and I would check the alternator. :nice:
 
Final post: engine still cut out after alternator install. I knew it had to be spark because it starts back up right away. Turned out it was the battery. I had an Optima red top in it. battery was 5 years old. It was shorting. I know, I didn't beleive it either.