Common causes for connectivity issues include Antivirus software, firewalls and even your Internet Service Provider (ISP). Because there can be multiple reasons, please check the following:
What should I do if MT4 cannot connect?
What does the "Invalid Account" notification mean?
What does the "Trade is disabled" notification mean?