Hello, It depends on how long your account was inactive. If it was inactive for a year, it may have been permanently deactivated by Yahoo.
Have a look in this article produced by CCM giving you all of the possible solutions on how to recover an old yahoo account.
Unfortunately, the article is exhaustive, containing all the known solutions.
A final option would be to contact yahoo support directly.
All the best, let me know how it goes!