At some point, you reset your keychain to default in Keychain Access. That caused your login keychain to be renamed.
Back up all data.
In Keychain Access, delete the login keychain from the keychain list. Choose
Delete References when prompted,
not
Delete References & Files.
Triple-click the line below on this page to select it, then copy the text to the Clipboard (
command-C):
~/Library/Keychains
In the Finder, select
Go ▹ Go to Folder...
from the menu bar, paste into the box that opens (
command-V), and press
return. A folder will open. Rename the file "login.keychain" in that folder to something like "login-old.keychain". Rename the file "login-renamed.keychain" to "login.keychain".
Back in Keychain Access, select
File
▹
Add Keychain...
from the menu bar. Add back the file now named "login.keychain". If any of your needed keychain items are missing from it, also add back the file you named "login-old.keychain". I suggest you transfer any needed items from that keychain to the login keychain, then delete it. The transfers are made by drag-and-drop in Keychain Access. You'll need to enter your password for each item transferred.