Check you are using the correct password.
If the password is correct, one possibility is that the settings are incorrect. Go to Menu > Tools > Accounts, and click on the IMAP tab for your account.
For Port 993, select Use SSL/TLS on special port (legacy)
For Port 143, select Use SSL/TLS if available
See if that helps.