name
The German word 'Name' is used just like in English to refer to the designation given to a person or thing to identify it. It is a noun and can be used in both formal and informal contexts. For example, 'Was ist dein Name?' translates to 'What is your name?'.
What is your name?
This is a commonly used phrase in German to ask someone for their name. The word 'Name' is used here as the main subject of the question.
My name is Hans.
This is how you would typically introduce yourself in German. The word 'Name' is used here to tell others what your name is.
The name of the book is 'Faust'.
In this example, the word 'Name' is used to refer to the title of a book. This phrase can be used to ask or tell something specific about an object, in this case, the title of a book.