Look for a green dot next to Connection Status at the top of the window. If you don’t see a green dot there, click the Network Diagnostics button and follow the instructions. An Internet connection is necessary to send and receive mail.
Next, find the affected email account that has a green dot and says "Connection and login to server succeeded." Double-click the affected email account to open its settings in Mail Preferences.