Fetching details from the dictionary...

to receive; to get; to accept; to take; to buy
to eat; to drink
to be crowned with; to wear (on one's head); to have (on top)
to have (as one's leader); to live under (a ruler); to install (a president)
to get someone to do something
先生からアドバイスを頂きました。
I received advice from the professor.
コーヒーを頂いてもよろしいですか。
May I have some coffee?
お菓子を頂いて嬉しかったです。
I was glad to get the sweets.