How to Activate Your iPhone 3G 3.1.3 With a T-Mobile SIM Card on iTunes
- 1). Download and install the latest version of iTunes from Apple
- 2). Plug the iPhone's USB cable into the computer's USB port.
- 3). Plug the other end of the USB cable into the iPhone.
- 4). Open iTunes, by clicking "Start Menu," "Programs," "iTunes."
- 5). Configure the iPhone. Since this is the first time the iPhone is being connected, the phone will need to be configured. A configuration wizard will pop up automatically. Enter the name for the iPhone and click next.
- 6). Wait while the iPhone connects to the network for activation. This can take a few seconds. The iPhone will display a message saying the iPhone was activated.
Source...