Depends upon your make of car.
At a guess the impact may have triggered an impact switch.
This switch is designed to cut off the fuel supply to the car in the event of an accident.
There is a push button reset on fords cars this is located in the lower front passenger footwell.
Maurice
December 2010