Hall sensors are three terminal device which converts magnetic filed to voltage.
It used to estimate rotor position and then trigger the appropriate phase accordingly which is key requirement to work BLDC motor correctly.
In the video below, I explained about each three terminal and how to test it without dissembling the motor. Hope you would like it. Don’t forget to share your view in comment section. Thank You.