How to restore contacts after reset android lg260

Solution
If the contact where sync to an online account, add that account back to the phone, if not, contacts are gone when you reset the phone