It sounds like it went into limp home mode (this will explain the sudden loss of power). Check the ECU for error codes. Beyond that - fuel filter (you have replaced it, but the stuff swimming in your fuel tank doesn't know when to quit), ignition coil, ground lead connections in the electrical harness, fuses and fusible links...

*what is the actual fuel like too? Only takes one tank of crap fuel to mess up your truck