Atomic and molecular gas in IllustrisTNG galaxies at low redshift