This is the first step when you in this situation
Ask
Have you iCloud set on the phone The reason I ask this first is that the phone needs to be restored to factory settings When you do this when the phone boots up one of the thinks it will ask you for is if you have iCloud set is your Apple ID and password. If you do not know these (BOTH) then it will not boot up fully Hence before you do anything ask the question is iCloud set on your phone
=== '''You tell us you donot remember your Apple ID or password''' ===
=== So in my view you cannot do anything only to use it has parts ===