If you're referring to the lock screen 4-digit PIN, a hard reset through a button combination will reset that one. Go to this page and perform the steps under "To reset an unresponsive phone".
If you're referring to some other password, we would need more information. You may need to create a Windows Central account to respond to this thread.