If you know you have fuel and spark, check to see if both are getting into the cylinders.
See if the rotor is rotating with the cap off.
Pull a plug and see if its gas smelling.
If both, can't remember if the distributor runs off the cam or the crank. If crank, see if the timing chain is working properly by taking the valve cover off. You should see the rocker move up/down.
If all checks out, bring engine to TDC on #1 and check the rotor for proper location for firing.
I had similar situation where the gear sprocket on end of distributor shaft wore out and timing was not able to keep the engine running. I was on my way to CampJeep in Wisconsin from Kansas. I broke down in a town in Iowa after driving 3.5 hrs filling up with gas. I had a teardrop camper in tow and my 2 kids with me. Was able to get it repaired and back on the road in less than 2 hrs but at a cost of $250 or so IIRC. Still running the newer distro today some 5 yrs later