IMAP syncing does not work

IMAP syncing does not work

Good day. I have two email address with the same domain. I have been trying to link them via IMAP to my android device and to thunderbird. With both emails and both devices it says that my username and password is incorrect. I have changed a password and logged out as well I enabled IMAP in the email settings. What is happening?