That depends.. if you had your ipad setup to backup through icloud. Then after you restore when you reconnect to the same icloud account, you can restore it from the latest icloud backup.
However, if you had it set to backup t hrough itunes on your mac or PC, t hen youd have to restore the backups through itunes.
You could check first.. try signing into the exact apple id you are using on your ipad via a web browser , here. https://www.icloud.com
Going there and signing in should let us see whether you have your contacts, pictures, etc.. backed up to icloud.. It should also let us see if your ipad is registered and has backups.
That way, we can be certain about whether you can recover your data or not, before you restore the ipad. But still, no matter what the ipad has to be restored at some point, if you want it to work again.
Senior Technician and Network Switching Systems Operator / Maintainer.