This chemical is released when one experiences pleasure of any kind. It is also a neurohormone (hormone released by neurons) which helps in the release of prolactin. So, we can sum up by saying that it plays a major role in cognition, voluntary movements, motivation, concentration, attention, punishment and reward, sleep, mood, memory, and also learning.