Good news: You can get a new password, a reminder of your Yahoo! ID, or both, by visiting the Sign-In Problems page. You'll need to supply some basic verification information, such as your birthday and the ZIP or postal code you provided when you registered.
Make sure to provide the same information you gave during registration or when you last updated your account. Without the correct verification information, you won't be able to obtain a new password.