log into your old apple ID account,
It depends on what you did with your 'old Apple ID'. If you have deleted it, it is no longer valid, it simply no longer exists and it no longer works.
To understand about a deleted Apple ID, see the Apple articles below:
How to delete your Apple ID account
How to delete your Apple ID account – Apple Support (UK)
Understand and control the personal information that you store with Apple
Understand and control the personal information that you store with Apple - Apple Support
but the old phone number is also lost, how can you log into your account,
That is searching in the haystack.
Is it possible to ask family, friends, acquaintances? They must have called you at some point, and they may have your details in their contacts.
Or ask your carrier.