password protected iphone

hi guys, my old iphone max is has a password on it and i can’t remember it. does anyone happen to know anything i can do to restart it? i tried to hook it up to itunes but it didn’t work