How do I restore my iPhone 5 using my Lenovo laptop?

I have been locked out of my iPhone because i have forgotten my passcode. I have connected my phone to my laptop using the charging cable I normally use, and I have tried searching for how to do a restore it but there's nothing that can help? Can you?

Added (1). I'm on windows 10

Erase your device with iCloud to remove your passcode

From another device, go to icloud.com/find.
If prompted, sign in with your Apple ID.
Click All Devices at the top of your browser window.
Select the device that you want to erase.
Click Erase [device] to erase your device and its passcode.