Can I remove the password from a smashed iphone I found?

So I found this iphone 4 or 4s i'm not sure on the side of the road all smashed and stuff, the led light still turns on and it still connects to the computer everything seems to work fine, if I paid for a new screen I could use this phone, but it has a passcode on it when i plug it into my computer, is there a way to get rid of this passcode and use the phone or should i throw it out? It is a perfectly good phone if it were fixed but I don't want to pay good money and not be able to use it, help.

I have heard of some ways to do it but it involved the screen to work.

Nope. IOS Activation Lock doing its job.

Yeah I doubt it. What you should really do is return the phone