iPhone 3GS, Solve some question of mine:(

When I purchased my new iPhone 3GS that time I unlocked it also jailbraked it.
1.Now I want to factory reset it, tell me how to do it?

2. My current FWV is 3.0 now I want to update into 3.1, plz tell me how to do this? Can any one give me the process link?

3. If I update my firmware into 3.1 then my phone still Unlocked?

4. After update firmware I think jailbraked will gone right or wrong?
Don't update. There is currently not a Unlock for iPhone 3Gs 3.1 firmware.

Original thread: https://forums.imore.com/threads/iphone-3gs-solve-some-question-of-mine.178342/