It's true that technically, a SIM card has the ability to store a limited address book, a small collection of text messages, and some call history, and in the old (pre-smartphone) days, this was super handy when moving to a new device.
On a modern phone, none of your personal data will (usually) be stored on the SIM.