Check the Security Groups, Network ACLs, Route Tables, and VPC connectivity between the two EC2 instances.