What does a fish's brain do?

A fishes brain is not developed in the same way as other animals, therefore do not feel pain as other animals would. A fish uses its brain like sonar to find its predators or prey.