The data on your phone is erased when you perform a factory data reset. All apps and associated data will be uninstalled, while data stored in your Google Account can be recovered. Make sure your data is in your Google Account so you can restore it. Understand how to back up your data.