Im not sure how u would check your air flow sensor, but u may be able to find one cheap at the auto parts store. u said it was running not long ago? was that before or after u put the k&n air filter in? check your distributor cap, wires and plugs. I had a coil go bad on me once and it was the result of an engine that would start and then die within a few seconds check that also

Chris