Factory reset wipes the data such as Application and it's data , all email accounts ,contacts , messages ,call logs (Internal storage optional) which will fix the problem of heating or short battery life caused by some bad app . Make sure you backup all your stuff before factory reset.