The modulated magnetic structures and phase transitions between them