Start with the basics. Check your oil, check your coolant level,
jumper your lift pump and run about 3/4 gallon out the T valve, Note how long it takes to pump 1/2 gallon.
Check your air filter.
On a 95 and older, do the dual lift pump relay upgrade or buy Leroys at leroydiesel.com
If your lift pump runs jumpered, check to see if it's running when the engine is running. Or jumper it and see if you have the same problem with the lift pump jumpered.
If you determine you have a bad OPS, check for voltage at the lift pump with the truck running. If you have voltage there it will be enough to trigger a relay. I just do the dual lift pump relay upgrade and skip the Oil Pressure Switch/OPS.