You need to log into your router and know the old password. If you do not know the old password then you have to 'factory reset' it, which will reset all the settings and the default password.
I suggest you google your router's model number and follow the instructions.