1995 gmc jimmy(4×4)

my 1995 gmc jimmy sputters, backfires then cuts off while driving. After it sits for about 1 to 2 hours it will start back. I replaced the fuel pump and all fuel filters about 2 months ago. I ran fine then started back to cutting off.