Gas pumps are supposed to have shear valves that, when broken, stop the flow of gas. It sounds like that didn’t happen when the pump was knocked over.
I believe that some stations have a button on the building that stops the flow of gas.