Sometimes when I am stopped my car will shut off.Could it be the fuel pump? on 2005 Mazda RX-8

It will also shut off when i am driving. Sometimes it will take forever to start.

1 answer
Sorry that I am responding so late, but my car was doing this and it needed a new motor