HELP how to use buttons

Hello! My name is juan, and I need some urgent assistance with the Button system in unity 4.6 or higher. The animations don’t work, and I don’t know how to make a script call a function (like "
void WhenButtonClicked(){thestuffthathappenswhenyouclick}
")

In here it is explained with some good details.