Connection issues

Hey guys i’m new here i was trying to start with my first machine i.e., Valentine and i tried scanning with nikto and nmap and after that i didn’t ran any scan but i’m lossing connection my browser says connection failed what could be the problem any suggestion