If your account has been hacked, you can use the password recovery form. You will need to remember all the details of your account as you will be asked for them. To make it easier, if you have attached a working phone number, recovery will need just two clicks away. It means that once you choose to reset the password, Microsoft will send you an automated SMS which will contain a code that you can use to reset your password. Please follow the instructions on that website carefully.