I have a iphone4s and i had a lock screen on but cannot remember the code. How can I unlock it?
If you can't remember, you have to restore to factory with iTunes or icloud.
if you erase with icloud, you can restore with last backup. More info from apple support on this link.
Forgot passcode for your iPhone, iPad, or iPod touch, or your device is disabled - Apple Support