If you want to prevent others from accessing the contents of your mobile phone (such as pictures and messages), you need to turn on the phone lock code. Once done, it needs to be keyed in when you turn on your mobile phone.
Please note: the phone lock code doesn't protect your mobile phone against unauthorised use. Your SIM is protected by turning on your PIN.