The wires going into the fuel bowl supply power to the heater element in the fuel bowl. Sometimes when the element shorts out, it'll blow a fuse that also supplies power to the PCM. No power to the PCM will prevent the truck from starting. The quick temporary fix was to unplug the connector at the fuel bowl, replace the fuse and you're back on the road.
The plug going into the turbo pedestal is for the EBPV actuator. With a cold engine at idle, it is supposed to close, causing the engine to warm up faster. A little tube going from the front of the passenger side exhaust manifold sends exhaust pressure to a sensor at the front of the engine near the water pump & HPOP. With the "go-pedal" pressed and the EBPV closed, it causes an increase of exhaust back pressure to the sensor. The sensor sends a signal to the PCM which is supposed to open the EBPV. Regularly, that tube running from the exhaust manifold to the sensor either gets plugged with soot or gets a hole rusted in it. In either case, the sensor never detects an increase of exhaust back pressure. In turn, the PCM doesn't open the EBPV when the truck is still not warmed up and trying to go down the road. But with a severely restricted exhaust, it'll run like a pig with no power at all.
I'm going to guess you bought the truck used?? In either case, it sounds to me like a lack of sound maintenance in the past.
If your truck is rather doggy when towing, check the EBPV actuator on the bottom side of the turbo outlet and make sure it is fully opened. (Do confuse with the arm on top, that's the waste gate.) It's possible the EBPV actuator in the turbo pedestal may not be fully opened.