You can usually skip the lockscreen password to unlock it if you restore it in recovery or DFU mode on your computer.
Maybe newer iTunes prevents that i dunno google it. Also do it offline, i dunno about apple shit anymore but i know if my phone gets stolen i can track it where it goes.