To change your restrictions passcode on an iPhone, you'll need to go into your Settings. Where you go from there depends on your iOS version.
If you're looking to protect your phone's data, here's how to lock your iPhone with a passcode, or lock it remotely if it's ever lost or stolen.
Apple believes that needing both the iPhone and its passcode makes it harder for thieves to steal users' information, but having both stolen is common enough, that you need to know how to protect ...