Phone basics
First, the hard truth, said plainly: nobody can unlock it without that code — not even Apple. That is on purpose, so a thief cannot get into your phone either.
There is one exception. If you changed your code in the last 3 days and then forgot the new one, you can use your old code one last time. On the "iPhone Unavailable" screen, tap Forgot Passcode?, then choose Enter Previous Passcode. This only works within 3 days of changing it.
Otherwise, the phone must be erased and set up again. You can do this without a computer:
If your photos and contacts were backing up to iCloud, they will come right back when you sign in. If they were not backed up, they are gone — no shop or software can bring them back. This is why backups matter.
SamsungOn a Samsung, the way back in is remote: from another device, sign in to Samsung Find with your Samsung account and choose Erase. Same deal — the phone resets completely, and your photos and texts only survive if they were backed up beforehand. And here is the hard truth, said plainly: if the phone is locked and nothing was backed up, no one — not me, not the phone store, not Samsung — can pull your photos off before the reset. Please let me check your backup today, before this ever happens.