On the dynamics of Cognition and Actions. An Assessment of some Models of Learning and Evolution