Thanks for your help guys now it doesn't freeze anymore and I can use wifi, but the Mobile Networks options are off when airplane mode is on, and if I try to set up the APN settings for metropcs,it freezes again.
I spent a lot of time doing searches about this problem, somebody posted here about this problem of the phone freezing when setting up the the APN and his solution was just to enter the information as quickly as possible before freezing and I can't do that since it takes me a while to type all the info for metro pcs.
Any suggestions about how to enter the settings while in airplane mode?