How to attatch animations to the player

I have four animations that I want the player to use and a script that tells when to play them. But how do I attatch the animations to the player?

Depending on the models and animations you can use either the legacy system:
http://docs.unity3d.com/Documentation/Manual/Animations40.html

Or the newer Mechanim system: