Allāh ﷻ gave intelligence to human beings but He ﷻ did not put it just in the brain. The heart also contributes to intelligence. It directs you on the right way, the way of the Holy Books and Messengers. If you listen to regular people, most of them will mislead you.