Since problem occurred after work around the AFM, that would be where I would be concentrating on.
You mentioed the engine could be started which requires fuel to be supplied and that would mean the pump is working.
Remove the fule filler cap. Get someone to turn the gnition on while you put your ear to the fuel filler opening and listen for a whirring noise, indicating the fuel pump is working.
Fuel pump is controlled by the Air Flow Meter. Check the wire connectors to the AFM and if it is tight, test the wires for breakages which can occur internally and not visible from outside.
Push gently against the wires from behind into the direction of the connectors and get someone to start vehicle. Wiggle it gently and see if there are any difference.
There is a fuel pump check connector which can be used for testing the fuel pump. Look out for a connector like what the diagram shows.
Short the FP terminal of the self-test connector (upper diagram) to ground and try starting.
Sunday, January 9th, 2011 AT 10:10 PM