You can diagnose problems like this with something I learned from my old man, who was an electronics guru. Make yourself a tattle tale light. Run a 12 v light powered from the source your troubleshooting - the other side to a known good ground. It could be the ignitor, coil, a module, relay, etc or in this case - jumper right into the power wire for the idle shut off solenoid. That solenoid opens when it gets power and shuts when it does not have power to prevent run on or dieseling when the key is switched off.
If you truck is running or the key is in the on position, the tattle tale light should be solidly on. If you are having problems with the power source then you will see the light flicker or flash and or even turn off.
For the truck to run you need air, fuel and fire.
This will help separate the fuel and fire (electricity).