If your iPhone is jailbroken, you can follow the instructions below which seem to have worked for the vast majority of people. If it's not jailbroken, then I really don't know what to suggest.
1. Open Cydia and search for “Legacy” – Install the first one on top. (TMobile US)
2. Once installed...