I had a dakota that would act like that alot of parts replaced trying to figure it out . figured out it wasnt getting fuel sometimes pulled the bed off again and found 2 wire terminals broke off the wires were stiff enough to touch the terminals sometimes to run . the dealer said they didnt have them and wanted to sell me the whole pump sender assy i think i fixed it with some weather pack pins hope this helps,