Sorry but Forgot passcode for your iPhone, iPad, or iPod touch, or your device is disabled - Apple Support covers all of the methods. Any chance that you had it set to automatically back up to iCloud and/or sync contacts to iCloud?
You can check on whether the contacts were synced by logging in to https://www.icloud.com/ and looking at the Contacts app there.
The "Delete Backups and turn off backups from your device" in the following link describes how you can use a computer to see if there is an iCloud backup of your phone. Follow those instructions to the point of seeing if the backup is listed but obviously you don't follow the rest of the instructions on how to delete. Manage your iCloud storage - Apple Support