Introduction to the models of phase transitions