I dont know whats wrong my new car....!

I have a 2000 Eclipse GS the problem is that with im driving and i come to a stop like the car wants to turn off but it doesnt. And the other thing is that the previous owner took out the stereo and when he put it back it didnt work anymore and i got the code for it but i dont know how to put it in?