My car wouldnt start????!!! HELP

Ok, today i went to work (about 15 min drive) and when i got there i killed the car. Car ran fine all the way to work and didnt seem weird. I decided to go get gas before i went to work so i tried to start it. Motor turned over and over and over but the car would not start. I DID NOT touch the gas pedal but i really think the car was flooded. The car seems to be running lean because it makes a popping noise when its cold and sometimes when its warmed. Should i invest in a fuel pressure regulator? I really think that maybe i'm gettin too much fuel. My gas mileage also SUCKS. I'm trying the eec test right now so would it give me any codes about what may be my problem? BTW 5 hours later i go out to the car worried to death and to my happy surprise, it starts right up. What could it be?