How to update Sony xperia mobile phone

Hi, i’am gone a show u how to update Sony mobile phone. Why to update Sony mobile phone? If the mobile phone hang if the mobile not start and restart if mobile lock and lock with gmail if mobile no power…