Hello and welcome to justanswer.com,
the symptom you are having is very common in your model. The problem is the main relay is faulty. this relay controls spark and fuel. replacing the relay will solve your issue. let me know if you need a diagram of the relay location.
Where would I find this relay? Is there a test I can do on it to determine that this is the problem for sure? I don't want to buy an expensive relay to find out it wasn't the issue if possible.