If you have a Microsoft account and you've forgotten the password, use a different computer or your phone to visit the Microsoft page. Then, use the "recover my password" feature, confirm your identity, and change your password so you can log back into your machine.