Breakdown of watashi wa sensei ni kikimasu.
Questions & Answers about watashi wa sensei ni kikimasu.
The particle は marks the topic of the sentence—the thing you’re talking about—whereas が marks the grammatical subject or a newly introduced item. By saying 私 は, you set “me” as the topic (“As for me”), which is natural when you want to say “I [do something].”
If you used が ( 私が先生に聞きます ), it would sound like you’re emphasizing “I (and not someone else) ask the teacher.”
を marks the direct object—the thing being acted upon. When you “ask someone” in Japanese, the person you ask is not a direct object but the target of your question, so you use に, not を.
By contrast, if you say 質問を先生にします, 質問 (“question”) is the direct object (marked with を) and 先生に remains the target.
