How can I activate my iPhone after restoring it if I don't know my Apple ID or password?
If you restored your iPhone and can't remember your Apple ID, Activation Lock will stop you unless you can prove you bought it. Take your receipt to an Apple Store, or use Apple's Apple ID recovery page and try every email address you've used. You'll need access to that email to reset the password. If the phone belonged to someone else, only the original owner can release it.