Truck is garage kept. Cold day. Started right up (all normal). Warmed truck up and started on my way. Less than a quarter mile away, the engine stops as if someone turned the key off. Made several attempts to restart. Truck would crank, but not start. When turning key on, the fuel gauge would spin 360 degrees. Had a OBD in truck. There was a p0380 (glow plug issue). Tried to start truck again, instrument panel lights flickering/dimming, and, now, no crank. Went over fuel system all good. Got tractor, and started towing the truck back to the house. During a pause in the towing, I tried to start the truck. Instrument panel illuminated up properly, heard fuel pump, truck started normally. Drove it back. All systems good. Batteries are good. Let it sit over night. Tried to start. Acted like it is not getting electrical power. No crank, no start, instrument panel dimming/flickering. Batteries good. Could this have something to do with ignition switch? Have many aftermarket parts.