If you don't remember the password of the current Microsoft account, you have to hard reset the phone.
If you can find the password of the current Microsoft account, you can follow the steps below to change the primary email account on Windows Phone 8.1 without hard reset:
◾Enter your Microsoft...