My 1995 ford f-150 5.0 engine will barely run sometimes. It set codes 211 and 212. How do I test the system?

My 1995 ford f-150 5.0 engine will barely run sometimes. It set codes 211 and 212. How do I test the system?

211-Pickup circuit fault
212-Ignition module circuit failure-spout circuit grounded
The first thing to do is remove the ignition module and let Autozone test it. If it test bad, replace it. If it doesn't test bad, check the wiring harness that connects to the ignition module for any bare wires. The spout is the little square part that's plugged in to the short harness that runs beside the ignition module harness. You are suppose to remove the spout connecter before you set the base timing then after you set the timing, the spout gets plugged back in so the computer can advance timing. If the ignition module and its wiring harness checks out ok, remove the spout connecter and insert a paper clip or jumper wire in place of it to see if the problem goes away. The 211 code is related to the pip sensor. The pip is mounted inside the distributer under the stator assembly. You have to remove the distributer cap, rotor, stator assembly, distributer gear, and its pins and clips in order to replace the pip