the car won't always start on 2001 Kia Rio

I have had the car in the shop three times now. It will not start, it sounds like it is about to the start whines, it backfires and quits. I go back 10 minutes later and it starts but runs really rough and the engine light comes on.

2 answers
change battery
If the check engine light is on, then diagnostic trouble codes should be stored. Find out what those codes are and we can offer a more informed response to your question.