Sometimes the deleted data does not necessarily disappear, they may still be stored in the mobile phone, so with the help of the recovery software, maybe you can get data back.
After factory reset, the Android data maybe overwritten, so the best way is make a backup before you reset your phone. If you don't make a backup, you can try the third-party tool, may be you can restore some data.