There are two types of questions in German (just like in English!):
As the name suggests, yes/no-questions are ones where the only possible answers are yes and no (plus a special word "doch" for so-called negative questions).
Positive Questions: „Kommst du aus Berlin?“
Negative Questions: „Magst du Lisa nicht?“
In English, it's difficult to know how to answer when someone asks a negative question like "Do you not like Lisa?" Does "yes" mean "Yes, it's correct that I do not like Lisa" or does it mean "Yes, I do like Lisa"?
German has a solution to this problem: the word "doch." "Doch" is used when you disagree with what the person said in the question, so in a sense "doch" means "actually I do."
The conjugated verb goes in position 1.
The subject goes in position 2.
Like in English, you can also form a yes/no-question by making a statement and raising your voice at the end of it: "You're coming to the party?" But in order to avoid misunderstandings, it's better to use the standard form of asking a yes/no-question: conjugated verb in position 1 - "Are you coming to the party?"
W-questions are questions that use question words. They are called w-questions because all question words in German start with the letter "w."
W-questions are asking for more information, and a "yes" or "no" is not enough to answer them.
Just like in English, the question word goes in position 1 and the conjugated verb goes in position 2.