If you put in a non-AT&T SIM and the phone is locked, it will say something like "Insert Correct SIM". If it says "No SIM" then either the SIM card's contacts are dirty, the SIM receptacle in the phone is broken, or you didn't put the SIM all the way in.