To change your recovery number, you must be able to access your account and go to account settings. To access your account, you need your password. to change the number. Since you do not have your password to change the number, a reset code will be sent to the wrong number.
You should have kept your account up-to-date.