These are the most common causes for connectivity issues on MetaTrader4: Antivirus software, firewalls and even your Internet Service Provider (ISP).
Since there can be multiple reasons, please check the following: