What causes the trac off light to come on?

my trac off light comes on in my 2002 cavalier then the car cuts off, but will start back up minutes later then the check engine light will come on and they both stay on