car died and wont start on 1997 Infiniti QX4

I was backing out of drive way and it just died. it cranks but wont turn over I wasn't getting any spark so I replaced the distributer but now it still wont start I can hear the fuel pump but I don't know what else to do

Asked by for the 1997 Infiniti QX4