There is a problem with my apple ID account
I have a problem with Apple ID. I type the password but it is wrong. When I try to change the password, it asks me for the iPhone login code. When I type it, it tells me that it is wrong. When I cancel the iPhone password and try again, it also asks me for the iPhone password, and I all ready cancel it. What is the solution?
iPhone XS Max, iOS 16