Different evolutionary stages in massive star formation - Centimeter continuum and H2O maser emission with ATCA