Hi there! Open Menu > Settings and Phone > Phone management > Factory settings > Restore > Enter the lock code
Hope that helps!