How to fix a rejected 2018 state and federal tax return

I wasn’t able to file my 2018 taxes because I was incarcerated for 15 months