You have to see if you are losing prime . Next time it doesn't start pump up the primer see if that helps it start. Also when is the last time you changed the fuel filter?
If it isn't a prime issue then you'll have to start looking into possible injectors. How many miles on the truck?