help with kia spectra 05 on 2005 Kia Spectra

engine wouldn't start. replaced battery and alternator. starts just fine now but wont stay running. what could be the issue now?

Asked by for the 2005 Kia Spectra
2006 kia rio engine wouldn't start everything shuts down new bat good.