Please read the article
What exactly is backed up?
In case you were wondering what gets backed up, Microsoft has detailed it on their help and support site:
The apps you've installed on your phone, along with high scores and progress from participating apps.
The passwords for your accounts.
Your call history.
Your Start screen layout and theme color.
The accounts you've set up on your phone.
Your Internet Explorer favorites.
The custom words you've added to your phone's dictionary.
Settings from around your phone, including photos, messaging, email and accounts, lock screen, Speech preferences, and more.
In addition to the above, which is just for Apps + Settings, you can also optionally backup your text messages and photos/videos to OneDrive. Enabling all four settings will ensure a fairly robust restore to your new Windows Phone.