The information that you have supplied is too little for us to rectify the problem. Nevertheless, please try out the following solutions:
1. Make sure that you are connected to the internet.
2. Try turning off windows firewall or any firewall application that you have on your computer. Now try logging in again.
3. Please make sure that you are using the latest version of messenger.
Please state when you experienced this problem and your computer activity shortly before the problem occured.