Hi Enrique:
Students get DIS-engaged when they lose attention, are not interested, or are unable to understand the material being taught. Therefore, analysis of why students have veered from being engaged is key.
Once a teacher feels they recognize why, they can intervene with an appropriate activity. Sometimes, to get students refocused doesn't take much. A change of media, a story or a bit of humor to bring everyone back together, or if needed, a different activity that emphasizes key points that are part of the lesson (such as discussion, video, workbook, qquestion and answer, etc) can refocus the class.
Regards, Barry