By locked, you mean you want a code or a patter when unlocking? If so, open Settings > Security > Screen Lock > choose a way to unlock your phone.