Use an ejection tool (aka Needle) or Paperclip. Push the tip all the way into the hole until the tray ejects, and then pull the tray of SIM and Memory card (Micro SD) out.
⚠️ Pay attention! The tool must be inserted into a hole on the edge of the phone's housing. Do not press too hard. It may break the tray eject mechanism.