Research from the University of Maryland found that sex (in "middle-aged rats") boosts cognitive function and activity in the hippocampus, the part of your brain responsible for creating new memories. While hippocampal function gets worse as you age (making you forget things), sex can slow this process down.