2000 k2500 5.7 liter sputtering

I have a 2000 k 2500 with the 5.7 vortec in it and it has been sputtering when driving it, it doesn't do it all the time. I have tried a new cap and rotor and a new fuel filter and it didn't help just wondering if there is anything else I could try before I go through the work changing the fuel pump.

id toss a pressure tester on there before putting a new pump in lol. has your check engine light come on? if your truck is running rough, it could be tons of things but it should throw a code. id say dont buy another part without scanning.