Check your IAC valve is not stuck. Take it off spray it with carb cleaner and let it soak then try it again. If its a 4 banger...then it could be the timing belt as mentioned.