Jailbroken but cannot Unlock

Hello, can anyone help?
I have the following:

3G iphone, version 4.0.1 (8A306), Modem 05.13.04
3GS iphone, version 4.0.1 (8A306), Modem 05.13.04

I've used blackra1n to jailbreak it, but I don't see the cydia app to unlock.
I want to use T-Mobile and need help.

thanks in advance.

DANG_OC
You need Ultrasn0w
Search for ultrasn0w in cydia. That will unlock ur iPhone. btw, that's a zero.
How in the world did you use blackra1n to JB iOS 4?
I'm interested in this too. You have to jailbreak to unlock?
http://forum.tipb.com/iphone-jailbreak-unlock/195355-jialbreak-matrix-all-idevices.html

Original thread: https://forums.imore.com/threads/jailbroken-but-cannot-unlock.195328/