The working principle of a DC motor is well explained in this video with the help of animation.
This video is provided by Lesics [https://www.youtube.com/@Lesics/about]