If your locked phone is signed into a Google account and connected to Wi-Fi or mobile data, you can reset it remotely.