Yesterday day on my way to work my car ran fine. When I went to leave work later on in the evening my car started right up but then died and my brakes stiffined up. I turned it off waited a couple mins then tried again it fired right up but when I put it in gear it don't do anything again I shut it off and waited a couple more mins I started it for a third time but this time it was a little hesitant but started I was able to pull out of my parking spot but when I put it in drive and gave it some gas it died on me again and I had to coast it into another parking spot. From then on when I start it its very hesitant and only runs for a min then dies everything in the car lights radio windows still work. I had to have the car towed home I hooked up a code reader and I got p02076 and p00031. Please help what could it be?