How does an MRI scan help diagnose and locate brain tumors?

How does an MRI scan help diagnose and locate brain tumors?