2.4 dohc 2001 alero having trouble running on 2001 Oldsmobile Alero

shut itself off two different times while driving but started up right away but now all of a sudden it wont start at all. did diognostics check at autozone 3 days ago came back clear. trying to figure out the problem did it once before the diognostics check and once after. just put new plugs and a map sensor in it before diognostics check.

Asked by for the 2001 Oldsmobile Alero