it says that I’ve inputted the wrong password to unlock my phone
This is a confusing statement because you use a passcode to unlock an iPhone. Do you have absolutely no access to the iPhone at all, or is it just getting into the level of things for changing your Apple Account settings such as your password?
If you see an iPhone, iPad, or Apple Vision Pro unavailable message or Security Lockout screen - Apple Support
Otherwise possibly a compromised account. Use the link below about strange devices.
Read this document if you think your Apple Account has been compromised. --> If you think your Apple Account has been compromised - Apple Support
For iOS 15 or earlier, if you want to see if anyone else has access to your device or accounts, click here --> Checklist 1: Limit device and account access - Apple Support
For iOS 16 or later see how Safety Check on iPhone works to keep you safe. Safety Check for an iPhone with iOS 16 or later - Apple Support
Use the information in this document to check your Apple ID device list to find where you're signed in --> Check your Apple Account device list to find where you’re signed in - Apple Support
Related materials:
Personal Safety User Guide
Personal Safety User Guide - Apple Support
> open the Table of Contents and review the articles
A document with general information about security and your Apple ID --> Security and your Apple Account - Apple Support
Contact Apple for help with Apple ID account security. This page provides country-specific Apple Support contact information ➞ Contact Apple Support - Apple Support