As a noun:
* What is your name?
* The name of the book is "Pride and Prejudice."
* He went by the name of John, but his real name was Thomas.
* My grandmother's name was Mary.
* The restaurant has a strange name.
As a verb:
* Can you name all the planets in our solar system?
* I named my dog after my favorite musician.
* The teacher named the winners of the competition.
* The detective named the suspect as the prime suspect.
* The king named his son as his successor.
In different contexts:
* She was known by name to everyone in the village.
* I couldn't remember her name, but I knew her face.
* He went through the list of names, looking for his own.
* The company is changing its name.
* She put her name on the waiting list.
These are just a few examples, and the way you use "name" will depend on the specific context.