metro and cricket are CDMA, so its likely not SIM unlocked (i know the sprint version says it is, but only for non-US carriers)
find out from your friend if he paid for the unlock, or used the free one, if he did the free one youll need to buy the SIM unlocker from here:
http://rhodium.htc-unlocks.com/