2001 Ford Taurus dying

My car was running fine one minute… thirty minutes later, I started it, it sounded fine, when I put it in drive it died, but would start right back up. only to die again once in gear… What is up with this car? I don’t suspect fuel pump, or filter, could it be a vacuum line possibly?