a friend gave me an iphone 3GS. How can I erase the lock password to reset the phone?
Does your friend not know what it is? Where did they get the phone to begin with?
You'll need to put the phone into recovery mode and restore it using iTunes if you don't know the passcode.
My friend passed away. I will say, I inherited. How do I put the phone in recovery mode?
iOS: Forgotten passcode or device disabled after entering wrong passcode
Which is the tip the OP was reading when posting the question
Whici he obviousy didn't read beyond the title, if that much...
Retrieving data ...