How do you reinstall the distributor in a 94 Taurus wagon 3.0 after changing a head gasket?

If you took it out you put it back. Then remove the cap so you can see where the rotor is pointing. Remove a sparkplug and with your finger on the hole - get someone to run the starter and you watch the distributor rotor position every time the engine compression tries to blow your finger loose. The rotor should be pointing at the plug wire contact that goes to the removed plug. No - then remove the dist, turn the rotorshaft a bit, reinstall the dist and check it again, and again until you get the rotor button pointing at that contact at the same time the compression stroke comes up. You will need to reset the timing after you get it running again.