Hey there, Izel
Please don't worry. If they are trying to get access to your account, please make sure you secure your account by putting security information on your account. You can do this by updating your security information here: https://account.live.com/proofs/manage/additional
If you feel as though spyware has been installed onto your computer/device, please open your antivirus software and run a complete system scan on your computer. This will detect any threats and remove them.
Lastly, I get these emails continuously, and ignore them. The user behind the email has spoofed your email address. They do this to make you think they have sent the email using your account and to try and bypass the SPAM filters. This helps give the illusion that they have "hacked" your account, when infect, they haven't. They do this to try and scare you into giving them what they want.
If you make sure your account is secure with two-factor authentication and has the latest security information stored on the account, you should be fine. Just don't click on any of their links.
You can find more information about how to protect yourself from phishing attacks here: https://support.microsoft.com/en-us/windows/protect-yourself-from-phishing-0c7ea947-ba98-3bd9-7184-430e1f860a44
Hope this information helps,
Nathan