EC2 Instance Wont let me connect

Whenever I try to connect to a p2.xlarge EC2 instance I get a timeout. I have tried doing chmod 400 to my .pem file. What to do, what to do?