You are going to need the password associated with the older Apple ID.
See If you forgot your Apple ID password https://support.apple.com/en-us/HT201487
You also can use Having trouble signing in/iForgot to try to recover your password. https://iforgot.apple.com/password/verify/appleid
And you are likely to need to see If you forgot the answers to your Apple ID security questions https://support.apple.com/en-us/HT201485
Being able to answer your security questions satisfactorily may be critical. See Security and your Apple ID https://support.apple.com/en-us/HT201303
This document says “without proof of your identity via security questions and other carefully selected criteria, Apple Support can't help you reset a password or perform any other actions on your account.”
In this case, you would need to have your original purchase receipt for the device with its serial number on it and to contact Apple Support in order to move forward in making the device functional. If it comes to that, here are some support options you can use:
Get a call from Apple support to help solve your problem using this
link https://getsupport.apple.com/?caller=kbase&PGF=PGF63005&category_id=SC0245&symptom_id=23362
Apple ID Support https://support.apple.com/apple-id
Apple ID account security for country-specific and
region-specific help https://support.apple.com/en-us/HT204169
Get Support: We’re here to help https://getsupport.apple.com/. Go through
the options to find the best support option.