When reporting a question, the sentence turns back into a normal statement (the subject comes before the verb), and we use if or whether for Yes/No questions.
Direct: "Do you like tea?"
Reported: He asked if I liked tea. (Notice the question mark disappears!)