Resolving login issues

Users will sometimes receive repeated prompts to log in to SharePoint or OneDrive for Business with their Office credentials. Each time they attempt to log in, their credentials are not accepted and they are prompted to log in again but receive the same results. Other times, OneDrive for Business will not sync files and reentering the login credentials do not resolve the issue. What's going on?