How matter can change its state?