Molecular mechanisms of physiological and aberrant phase transitions