You can restore your iPhone with a recent backup via iTunes or iCloud. If you don't have a previous backup, you can also contact Apple Support for further advice. Please be aware this method is not free and may cost you hundreds of dollars. Another method is to use a 3rd party tool called LockWiper on your Windows PC or Mac.
https://www.imyfone.com/unlock-iphone-passcode/