i replaced the fuel pump and resistor ,still wont start,runs for 4 seconds then dies?

i havent tryed the fuel pressure regulator yet,i ended up towing to a repair shop,ill let you know what they find.i towed it to the shop they said it started right up for them after charging up the battery ,dead battery cleared the check engine light.i had them change the fuel filter,they said i was partially clogged,maybe this was the problem afterall or maybe the security cutoff ? well ive been driving it for a few days with no problems.i would advise anybody to change the fuel filter first before doing anything.