Brain motivational triad

I don’t understand which side of the motivational triad matches with our brain driving our attention to “I have a problem”.
Why does our brain do that ?
It doesn’t avoid pain just the contrary.
It doesn’t give pleasure just the opposite.
And it certainly doesn’t spare effort because then it’s running mad looking for a solution.
Can you give me some help with it please ?
Thank you so much !!!