Hello,
● If your account has been disabled for security reasons the solution is to reset your password as outlined in this document: If you forgot your Apple ID password - Apple Support
If you find you can’t sign in, reset your password, or receive verification codes, you can request account recovery (read this support article: How to use account recovery when you can’t reset your Apple ID password - Apple Support ) to regain access to your account. More detail in —> Activation Lockout Issues - Apple Community For additional assistance from Apple Security, read: Contact Apple for support and service - Apple Support
● If your account says it is inactive, that is not the same as it being disabled. Contact Apple:
1. Click here --> https://getsupport.apple.com/?caller=cups&PGF=PGF63005
2. Select: Disabled Apple ID
3. Select: ”The Apple ID is not active" alert
4. Select: “Continue”
5. Select a chat or telephone call option.
If it's another reason then post here with details.
Once you have your account working again refer to this support article for various methods that you can use to resolve a locked device (I am not clear if that is what you mean). --> If you see a iPhone, iPad, or Apple Vision Pro unavailable message or Security Lockout screen - Apple Support