Forget PassWord or PassCode?
To unlock your iPhone, follow the steps described in the Apple article:
(< iOS 15.2) -> If you forgot your iPhone passcode
If you forgot your iPhone passcode - Apple Support
(iOS 15.2 and newer) -> If you see an iPhone or iPad unavailable message or Security Lockout screen
If you see an iPhone or iPad unavailable message or Security Lockout screen - Apple Support
-----
See -> If you can't connect or sign in to iCloud
If you can't connect or sign in to iCloud - Apple Support
B T W:
You are sign in here . . . with your Apple ID & Password.
Your Apple ID is the personal account you use with all Apple products and services. It includes the email address and password you use to sign in, as well as the contact, payment, and security details that you use with Apple.
You can’t merge multiple Apple ID accounts.
What happens when you use the same Apple ID & Password that you use to sign in here?
See the following Apple articles
Sign in with your Apple ID -> Sign in with your Apple ID - Apple Support
Manage and use your Apple ID -> Manage and use your Apple ID – Apple Support (UK)