Your problem may be the IAC (Idle Air Control valve IIRC). One day I went to start my car and it would crank, fire, and then die. It seemed like the idle wasn't catching; I read through the trouble shooting forums and found that the IAC can get stuck and cause this. I took the IAC off and cleaned it and it fixed the problem.