iPhone doesn't have that built-in feature. Sorry.You'll need to connect your iPhone through iTunes and transfer the contacts to Address Book (if you're using MacOS) or Outlook (Windows) first, and then transfer them onto another phone with your old SIM card in it by using a different software.