Had this happen to me before, turned out to be the rotor in the distributor cap (metal tang on rotor lost its shape and wasn't making contact in distributor cap). Bought a new rotor, installed it and all was fine.
Also when you have the distributor cap off, check the reluctor air gap...