I had problems when I'm driving that the car just shuts off on 1995 Toyota Camry

I check under the hood and there is no spark, so I changed the module in the distributor and the Ignitor and it got spark and started and then after 5mins is shut down again, so I check to see if I had spark and it no longer has spark and the engine turns but does not start. Any help would be deply appreciate

2 answers 2 comments
poss ign. coil
so there is a difference between the ignitor (I changed the ignitor already) and ignitor coil? and if so where is the coil?
next to ignitor
these vehicles are known to have bad distributors