That depends on the data you’re trying to recover. Deleted photos and videos can be recovered from the Recently Deleted album in the Gallery app, but only for 30 days since their deletion. You might also be able to recover your data from a local backup or a cloud storage service like iCloud. However, only iPhone recovery tools can recover permanently deleted files that you don’t have backed up anywhere else.