Existing account? Move your SIM from the old device to the new device.
Existing account, different SIM size? Buy a new SIM and contact Customer Care to move your account to the new SIM.
New account? Buy a SIM and activate it.
What phone were you gifted?
Manage your T-Mobile account