This may be due to low fuel. If the fuel level is too low, it may not reach the fuel inlet inside the tank if the car exceeds a certain angle. At which point, no amount of suction from the fuel pump will cause fuel to flow.
When the fuel-low indicator lights up, it means you have approximately 10 liters (+/- 3 liters) remaining. It is essential to fill up as soon as possible when you see the warning light.