Stalling 2003 Saturn Vue

Car drives but stalls out and the security light flashes three times. Then wont start again. Replaced crank position sensor.

4 cyl /auto trans? It’s telling u to run before cvt trans dies.