Hi and thanks for using 2carpros.com
This could be the result of a few things. If the check engine light was staying on, I suggest having the computer scanned. Here is a quick video which shows how a scanner is used.
I realize most people don't have a scanner, but often times a parts store will lend or rent one to you.
What I need you to do next is read through these two links that I attached. The first one discusses a faulty crankshaft position sensor. The second discusses how to check fuel pump pressure. Either of these two issues can cause what you are experiencing. Read through this first.
If that doesn't seem like it could be the issue, then I recommend testing fuel pressure.
Here is a link for doing that.
Let me know your thoughts and questions. Also, if the computer has already been scanned, let me know the results.
Thursday, October 25th, 2018 AT 7:13 PM