Make sure the raspberry pi is connected to the internet. This can either be done via ethernet or wifi.
Make sure you got the ip and login information for the pi. The default login is pi and the default password is raspberry. If you don't know the ip, you can find it in your routers dashboard. If you're running Raspberry Pi OS, you can try to use the hostname raspberrypi to connect to it.