Hi there and welcome to iMore.
If your device is already in recovery mode, connect it to your computer and run iTunes. You may have to hold the Home button while you connect the USB cable.
iTunes should detect the device is in recovery mode and offer to restore it from a backup. All personal data, apps and settings will be removed from your iPhone or iPad and it will be restored to the most recent backup, so some data might be lost if you haven't backed up for a while.