check the temp sender and see if it is shorted
a bad sender unit can make the system think it is running hot and shut the truck down. One of the safety functions of the ecm in the case of overheating is to shut down the fuel to kill the engine.
also check your grounds at the engine block and frame
This is ONLY to be used to report flooding, spam, advertising and problematic (harassing, abusive or crude) posts.