Check engine symbol flashes intermittently idles rough and ETS off light stays on 1998 Pontiac Grand Am

Car died when shifting into drive

2 answers
have it scan tested for codes and go from there
flashing light means misfires that can damage catt