If you restore your iphone 4s and it says you need your apple id and password to activate ,and it says sign in with the apple id that was used to set up this iphone and i frogot what do i do
Without the correct AppleID and password, the phone can't be used anymore, sorry.
But there is help to find your password for your AppleID again, check these articles:
iCloud: Remove your device from Find My iPhone
iCloud: Activation Lock
Security and your Apple ID
Retrieving data ...