To remove the SIM card from your iPhone, you'll need to eject the SIM card tray with a special tool or paperclip.
If your new phone no longer supports SIM cards, or you don't want to use them anymore, you can convert to eSIM instead.