To transfer contacts from iPhone to iPhone, using iCloud is the easiest method. Ensure both iPhones are signed in with the same Apple ID/Apple Account. On both phones, open Settings > tap your name > ...
Changing physical SIM cards on your phone is always a fiddly business. First, you have to root for the little SIM tray tool ...