Chan you just check the VPC Settings i mean the Subnet associated with the EC2 instance and also the NACL's, Natgateway IP, Internet gateway etc. The second thing would be the Linux version upgrade and also try to run that using run command if you were not able to SSH. Before doing it assign a SSM Agent policy.
Regards,
Krishna