Automated translation (from Spanish):
"I bought an iPhone pro max 512GB, but I suffered a robbery and they accessed my cell phone, my contacts were threatened by the thief, I thought the last iPhone was safe, for that reason I bought it but it didn't turn out as I expected
The thief entered my iPhone and had access to my email, my contacts, my Imei, etc.
He began to threaten my contacts and their relatives and sent me the capture showing the threats to my contacts, wasn't the iPhone safe?"
Was your phone locked, with a passcode that the thief did not know, could not easily guess, and did not observe you entering? If the phone was unlocked or the thief could easily bypass the passcode lock, that would let them rifle through your data.
Did your Apple Account have an Apple ID password that the thief did not know, and could not easily guess, so the thief could not simply log into the iCloud Web site to view synchronized contact information?
Did you subsequently receive any text messages from "Apple Support", "Apple Security", or the like (these would actually be "phishing" messages from the criminals), and if so, did you fall for them?
Did you have a Medical ID that you were displaying on the Lock Screen? People often include emergency contact information in their Medical IDs – and allowing the display of the Medical ID on the Lock Screen means that a thief could see this information. (You could suppress display of the information, but then it would not be available to an emergency responder who was trying to save your life.)