Sheridan and White conclude the chapter on 'Getting and Holding Attention' with the following:
Attention follows interest. Holding the attention is not a problem for the teacher of an interested class. but for emphasis it must be repeated: The interest, to be worth anything, must be interest in the lesson itself because the pupil feels that it has some relation to his own life.
Gregory addresses this idea in the chapter 'The Law of the Lesson' (Seven Laws of Teaching):
There are some who go so far as to say that no attempt should be made to impart knowledge unless the child feels a distinct need for it--unless he sees that it is essential to solve some problem that is real and vital to his life. This is doubtless an extreme view, but it is none the less incumbent upon the teacher to know what the problems of child life are and to utilize them in making his instruction just as rich and meaningful as possible.
Excellent teaching draws upon the interests and problems of students, not to determine what is learned or how, but to reveal possible connections that will attract the interest. Where this is done getting attention and keeping it take care of themselves.