How do I unlock my older version iphone?

I have an older version Iphone and I have t-Mobile service , but it is not reconizing my sims card. PLEASSSSSEEEE , can anybody help?????
Do you no what firmware/OS its running?
no I don't, how can I tell
Does it say slide for emergency?
Yes it does
Try This

How to Check iPhone Firmware Version (Field Test Mode)

Turn on the phone and slide to unlock the keypad. iPhone screen should show that only emergency calls is allowed.
Enter the following key sequence: *3001#12345#* and then finish by pressing Call button. This will enter field test mode of iPhone.
Tap on Versions.
The firmware revision information of iPhone installed out of the box will be shown on LCD screen. The following guide will match the firmware revision to the firmware version.
03.12.06_G ? firmware version 1.0.0
03.14.08_G ? firmware version 1.0.1 or 1.02
04.01.13_G ? firmware version 1.1.1
04.02.04_G ? firmware version 1.1.1

via mydigitallife.info
What does that mean if it say slide for emergency? Or should I say, what firmware/os is it running?
it is not responding to the code I just typed in
Go to blackweather and Download it and Follow the Steps.
I put in *3001#12345#* and hit the call button but it did not respond
I am downloading it now
it is waiting for it to reboot. Should I be able to use it with my T-Mobile SIM?
Should work fine.
How long does it take to reboot? My screen still does not show my it recognizes my sim yet?
Follow these directions: YouTube - Jailbreak 3.1.2 iPhone & iPod Touch w/ Blackra1n on Windows
It shows in Itunes my software version is 3.1.2
Ok, If you watch the video it walks you though step by step.

Original thread: https://forums.imore.com/threads/how-do-i-unlock-my-older-version-iphone.181954/