My iphone 5 crashed. It went back to factory settings. It's registered under an apple ID I can't recover. I have Apple ID's but they won't unlock the phone.
It sounds like you're seeing a security feature called Activation Lock. To unlock it, you will need the Apple ID password it is asking for. To learn more about Activation Lock please view the article below: