I recently sold my old iPhone and I'm not sure if all of my photos and media are completely erased Is there a way to check some how?

I did some sort of reset setting on the phone… Not sure if it was a factory reset or what all I know is when I sold it
the phone still required the password to unlock it so I'm not entirely to sure if all my stuff is still there or not.

Another thing I forgot to mention was that it required the password but you still had to choose a language, sign in to iCloud etc.

Did you sign out of your Apple ID or not? If not then your stuff is still there unless you've fully deleted them!

Factory resetting should have erased eyerything. If your password was still there, you did it incorrectly.