can someone help me file previous years returns how do i do it

i need to file 2023 and 2021 returns. my 2021 returns were rejected i guess