A chossid once asked the Sfas Emes "ווען א ייד איז ביי זיך געפאלן" - When a Jew is broken, how can he save himself. The Sfas Emes answered "With tefilla".
The chossid said "The Kotzker Rebbe said with Torah?"
Answered the Sfas Emes "We ask Hashem הוא יפתח לבנו בתורתו - To open our hearts to Torah. Afterwards we say וישם בלבנו אהבתו ויראתו - He should put in our hearts love and fear. Torah is a means to achieving love and fear - tefilla."
Tefilla is the goal - Torah is the means.
ויש להאריך בזה מאד.....