Galaxy star formation and quenching