Molecular gas in distant galaxies from ALMA studies