Unfortunately your device needs to be erased but you might want to cost the methodby one of how you'd want that donethe following procedures
- If you've synced with iTunes, use iTunes.
- If you're signed in to iCloud and Find My iPhone is enabled, use iCloud.
- If you don't use iCloud and you can't sync or connect with iTunes, use recovery mode.
Apple has a support document describing the steps in detail, see this Apple documentationIf you forgot the passcode for your iPhone, iPad, or iPod touch, or your device is disabled for full details.