You have to get the device unlocked. You can get the code from this forum:
BlackBerry Forums Support Community - Unlock Your BlackBerry!!
You also have to ensure it's not still associated with an account on the last carrier. Contact the previous owner for that.