There are multiple Creative Commons licences, and each one has a different combination of permissions and restrictions. Here are the different options for permission or restriction, which can be recombined:
You can have many combinations of BY, NC, ND and SA.
What this means is that when you want to create a work that incorporates a Creative Commons work, you have to make sure that the license you want to put on your work is going to be compatible with the license of the work you are incorporating.
It gets more complicated when you want to create a work that incorporates two or more Creative Commons works. You will be restricted to the permissions of the most restrictive license.
This Creative Commons License Compatibility Chart is a simple visual way to understand license remixing, and it's also a great quick reference.
Play the OER Remix Game to get familiar with how the different licenses can be combined. There are game instructions to the right of the game. The instructions contain a very thorough and systematic summary of how the licenses can be combined.
Special note! You absolutely can use copyrighted (not Creative Commons) works as part of or as the basis of a Creative Commons work, if you get permission from the copyright owner. This may entail paying royalties.
It is extremely important to give proper attribution, and there is one authority on how and where to do that: the Creative Commons website itself!