Hey Dunder Mifflin - Don't give up just yet.
What is the year of the car? It sounds like this is electrical in nature. Download a code scanner on your smartphone (assuming you have one), and buy a $10 - $20 OBD-II dongle plug in. It will put you way down the road to resolving this.
Also, when you say your gas just stop working ... do you mean that no matter what level you pushed the gas pedal, the engine speed would not respond? But it did idle, right?
Be as Mickey Mouse as you can with describing the incident. I'm the world's worst at trying to describe something.
__________________________________________
View my fuel log 2020 Mirage ES 1.2 manual: 42.4 mpg (US) ... 18.0 km/L ... 5.6 L/100 km ... 50.9 mpg (Imp)