car wont start on 2001 Infiniti I30

i have replaced the fuel pump and the strainer and my car still will shut off after running for a few seconds can you tell me what may be causing that

Asked by for the 2001 Infiniti I30
there are many things electronic that could cause this.
would first see if there are any stored or current diagnostic codes. is it losing fuel or ignition? only running tests can the cause be diagnosed.