Broken symmetry driven phase transitions from a topological semimetal to a gapped topological phase in SrAgAs