Question: how can i connect my locked iphone to the internet?
Answer: Even if your iPhone is disabled because of a passcode lockout, it may still be connected to the internet via cellular data or wi-fi. Go to www.icloud.com, log in with the same Apple ID used to enable Find My iPhone on that iPhone, and then perform a 'remote wipe' of the iPhone.