Sync for iCloud, Sync for iCloud Contacts, and Sync for iCloud Mail do not support Apple’s latest authentication methods. Therefore, to log in to your account, you need to create an app specific password.
The steps below will show you how to check whether you have Apple’s latest authentication method enabled, and how to generate an app specific password. Each time you change your password, you must create a new app specific password.