Welcome to Android Central! Which phone? If it's a Samsung, you can try to remotely unlock it using Find My Mobile: https://findmymobile.samsung.com/. Otherwise, you'd have to do a hardware key factory reset, which will wipe the phone. You'd also have to enter the Google account and password associated with the phone to do the hard reset -- hopefully you remember that!