That depends on the use of your phone. Our Sydney-based mobile phone repair store recommends formatting a phone before it’s sold to another user. Because formatting is the same as a hard reset, it will remove all personal data and identifying information for another use to begin again.
Otherwise, formatting should be left to only when necessary for some phone repairs.