Learning through the sensorimotor loop is essential for intelligent agents. While the important role of sensorimotor learning has been studied, several important aspects of sensorimotor learning in the brain, such as the development of motor behavior maps, the influence of internal dynamics on external behaviors, and the emergence of tool-use capabilities, are not addressed significantly. In this dissertation, I will address three questions trying to probe the nature of sensorimotor learning: (1) How can a sensorimotor agent understand its own body by developing a cortical map of its motor actions?; (2) How can predictive internal brain dynamics play an important role in external behavior (authorship of actions)?; (3) How tool-use emerges i...