According to Apple Community Specialist Brittany1416 in thread Inactive Apple ID - Apple Community , please contact Apple Support for help with an "inactive" Apple ID.
You can reach Apple Support using this link --> Contact - Official Apple Support
or by telephone at one of the numbers in this support article --> Contact Apple for support and service - Apple Support
Note that having an "inactive" account is not the same as having a disabled account. If your account says it is "disabled", see this article --> If your Apple ID is locked or disabled - Apple Support
If you deliberately deactivated it, read the section "Can I reactivate my account?" in this support article --> How to deactivate your Apple ID account - Apple Support