What can i do with a locked iphone?

My mom has 2 iphones(6, and 6s) that have an apple ID/account assigned to them though i don't know the password to unlink the account. The phones originally belonged to a friend that is now deceased so whatever the passwords were we got no access to. We received the phones from that friend's sibling after her death in hopes that we could do anything with them (my mom's phone at the time was damaged)

is there anything we can do with these two phones, or are they pretty much trash at this point? (we're mainly wondering if we can get any money from them to cover the cost of my mom's new phone)

If the friend still has access to the email account, you can reset the Apple ID password via the Apple web site.

Other than that, they are fancy paperweights…

There's absolutely no way to bypass the Apple ID verification, the account info is stored on the Apple servers & not just in the phones

https://www.imyfone.com/ios-data-erase/how-to-reset-locked-iphone-without-passcode/#tip4

Factory Reset the device using a pc or Mac.

Open iTunes on the computer, and connect the USB end of the lightning cable., while holding down down the home button plug in the lightning end.

Follow the prompts to reset as a new device.

Should not say but
go to apple store, need owner either mother certifi. Or too complicated to even speak