You may get an email that says someone has hacked you, watched you, or recorded you, and demands payment, often in cryptocurrency. It often includes a real password of yours, to make it look true. This is a well-known scam, sent to huge numbers of people. Do not pay and do not reply.
The scammers did not hack your email. They bought lists of email addresses and passwords stolen from other websites in past data breaches. If the password is one you have used somewhere, even a long time ago, it looks convincing.
Some of these emails look as though you sent them to yourself. It does not mean your mailbox was used: the sender's address on an email is easy to fake. See SPF, DKIM and DMARC.
If you think your mailbox or hosting account has been accessed, change the passwords and open a support ticket.