2005 ford freestyle

What causes my car to shut off driving on highway and now when I try starting the car it starts and shuts right off will not stay running
2005 Ford Freestyle