The 3.0 in the Ranger does not use a Crankshaft position sensor in the ignition. That is the 4.0 setup. What you have inside the distributor is the hall effect switch pickup assembly i mentioned earlier. The bad news is that to replace that assembly, you need to: a) remove the distributor (marking it for proper orientation on reassembly) and; b) then from the distributor, remove and disassemble the stator, which requires a press. This one is a PITA.
You may want to exhaust all other possibles and fix everything that needs to be fixed (vacuum leaks etc) before jumping into this one.
ps. You won't find much about this process in Haynes etc because it is beyond the tools available to (and in most cases ability of) the typical DIY'er.