transfer contacts from sd card to computer via USB
Pretty easy to do, and probably explained in some other answers here already:


Open the Contacts app
Hit the Menu button/key, and chose "Export/Import"
Select "Export to SD card" (creates a file named something like 0001.vcf in the root of your SD card)
Either shutdown your phone and connect the SD card to your computer with a card reader, or connect the phone via USB (storage should show up there then)
copy the 0001.vcf file to your computer


*.vcf is a file in VCard format and can be read by many applications. So you can import it into the software of your choice (or transfer it to your new device to be imported there) and check whether all contacts came along. In case the SIM contacts are missing, you might need to first copy them into your device's own contacts.