Welcome to Apple Support Communities.
If I'm understanding correctly, your MacBook is not accepting your Apple ID password. I will be happy to help.
Check out the steps below to see if it helps from our article: If you can‘t connect to the iTunes Store, iBooks Store, or App Store
When you try to open the iTunes Store, iBooks Store, or App Store, you might see a "Cannot connect to iTunes Store" alert message or something similar. The iTunes Store, App Store, or iBooks Store may also not load anything at all, or unexpectedly stop in the middle of downloading content.
If you have a separate issue where iTunes doesn’t recognize your iPhone, iPad, or iPod touch when you connect the device to your computer using a USB cable, get help.
If the iTunes Store, App Store, or iBooks Store loads as expected, but you can't log in, you can reset your Apple ID password.
Store availability and features might vary by country or region.
Check your connection
Make sure that your device is connected to the Internet. Try using an Internet browser to connect to any website and see if it loads. If it doesn't, use another device on the same network to see if it can connect to any website. If no other devices can access the Internet, turn your Wi-Fi router off and then on again to reset it. If you still can’t connect to your Wi-Fi network, contact your Internet provider for more help.
If you use cellular service to connect to the Internet on your iPhone or iPad, make sure that you have cellular data turned on for the iTunes Store, iBooks Store, and App Store: Go to Settings > Cellular, and turn on Cellular Data. Learn what to do if you still can’t connect to the Internet.
Check System Status
Visit the Apple System Status page to see if there are interruptions in service in your country or region.
Update your software
Update to the latest versions of iOS, macOS, tvOS, iTunes, or your PC's operating system. Then try to connect to the iTunes Store, App Store, or iBooks Store again.
Check the date and time
Make sure that the date and time on your device is set correctly for your time zone.
On your iPhone, iPad, iPod touch: Go to Settings > General > Date & Time. Get more help with date and time.
On your Mac: Open System Preferences > Date & Time.
On your Apple TV: Go to Settings > General > Date and Time.
On your PC: Search for timedate.cpl using the search box or Search charm.If it's not, set the correct date and time, or turn on the option to set it automatically.
On your Mac or PC
Follow the steps for your computer.
On your Mac
By default, the built-in application firewall for macOS automatically allows applications signed by Apple to receive incoming connections. If you've adjusted the settings for your application firewall, you might need to allow incoming connections. If the issue persists, reset the cache of accepted certificates:
- Click your desktop to make sure that you're in Finder.
- From the menu at the top of your computer screen, choose Go > Go to Folder.
- In the box, enter
./var/db/crls/
- Click Go.
- Drag the files labeled
andcrlcache.db
to the Trash.ocspcache.db
- If prompted, enter your administrator password.
- Restart your computer, then try to connect to the iTunes Store, iBooks Store, or App Store.
On your PC
- Check to see if you've turned on third-party security software or Windows Firewall. If you have, your settings might not let you connect to the iTunes Store, and you might need to change them.
- Check your Windows proxy server settings.
- If you see only a blank white screen with the words iTunes Store on it, you might have a conflict between software that monitors Internet traffic and Apple software.