Okay, it sounds like the crank sensor is okay. The cam sensor however, if you were reading no resistance across the two marked pins the cam position section of the sensor is bad. The repair is a replacement distributor as the individual part is no longer sold. It isn't a hard part to change but you do need a timing light to check the timing.
There is one bolt that clamps the distributor to the cylinder head. Normally you would remove the wires from the cap but as yours is running okay at the moment I would suggest removing the distributor cap from your old one first, leaving the wires in place for now.
Then disconnect the connector you tested and remove the hold down bolt and the distributor will pull out of the head.
To install the replacement you need to set the engine at top dead center on the compression stroke. You do that by removing the spark plug from cylinder number one. Then you put a finger or dowel tightly over the spark plug hole and listen as you turn the engine by hand. As it nears TDC you should hear a hissing sound as the air tries to escape, now gently rotate the engine clockwise until the notch on the balancer lines up with the TDC pointer. Then verify that the slot in the camshaft matches the picture. Next you apply a bit of clean oil to the o-ring on the new part, then rotate the drive on the distributor so that the notch on the drive lug matches the small bar on the housing, those are the items that need to line up marked in the picture. At that point the new distributor should slip into place and you can install the bolt. Now you can use the old cap numbers as a guide and remove the wires from the old cap and place them onto the correct terminals on the new part.
The next step is to verify that it is installed correctly by checking the timing. For that you connect a timing light up and start the engine, if it starts okay then you are close to done, you just need to check that the timing is on 10 degrees before top dead center. If it is, and the CEL goes out, you're finished.
Images (Click to make bigger)
Tuesday, July 7th, 2020 AT 10:00 PM