Answer
The BLDC motor is in general easy to connect, and easy to test, as summarized below.
(1) You connect power,
(2) You input PWM signal,
(3) You leave direction wire disconnected,
(4) You leave FG (motor encoder signal) disconnected.
BLDC happily turns, and that is all.
But also see the warning in Appendix C.
References
BLDC JGB3525 Motor - Aslong ¥80
Bringsmart-24v dc motor with 12-1600rpm gearbox, 6-24v encoder motor for diy automation equipment
How to debug new Brushless DC motor not working? [closed] - EESE, Asked 1 year, 2 months ago , Active 1 year, 1 month ago Viewed 1k times
Nidec 24H677H010 12v 4800 rpm brushless motor micro brushless DC motor PWM motor
Appendices
Appendix A - General BLDC Wiring Scheme
DC Power:
Red wire = DC 12V Positive (+) (Motor power positive)
Black wire = DC 12V Ground
PWM Speed Contorl:
Blue wire = 0V, 5V PWM pulse
CW/CCW Direction Control:
Whie wire = floating, motor turns in one direction,
= Ground (Black wire, DC12V gGround)
Motor speed FG (Frequency Generator, encoder/feedback signa from motor:
Yellow wire
Appendix B - Aslong JGB3521 Motor Wiring Scheme:
Red = Motor Power Positive (Warning: incorrect polarity will fry controller!)
Black = Motor Power Negative
White = Disconnect to turn in one direction, Connect to power negative to change direction
Blue = 5V PWM speed control 0~5V pulse
Yellow = FG (Frequency Generator, encoder/feedback signa from motor)
Appendix C - Wiring Warning
Polarity of power connected to BLDC motor must be absolutely, unmistakenly correct: of course as usual, Red to DC positive (+ve), Black to Ground (-ve).
BUT IF YOU CONNECT RED TO GROUND, BLACK TO DC12V+, UNLIKE DC MOTOR, WHICH JUST TURNS IN OPPOSITE DIRECTION, BLDC CONTROLLER JUST GETS FRIED.
Yes, I sometimes connect randomly, and my expensive US$10 BLDC randomly fry.
Don't ask me how many BLDCs I randomly fried. :)
Appendix D - Destructive Testing of a BLDC motor
Ref - BLDC CW/CCW FG Signal 12V/24V GB25-3525 - Aslong ¥80

Part 1- Only red and black power wires are connected (all other wires disconnected), motor starts moving.
https://youtu.be/iYnrbV1c028
Part 2 - Power on, PWM and Direction No Connection, Using scope to display FG waveform



Part 3 - PWM control motor speed test results
I used my Rpi Pico mircoPython program to input various duty cycle 1kHz PWM signal to the BLDC motor and found the following results.
30% duty cycle ~= 125 FG (Encoder) pulses per second
50% duty cycle ~= 455 pps
90% duty cycle ~= 830 pps
So far so expected. Below are the scope screen captures.



And the duty cycle vs motor speed (encoder pulses per second) is rather linear.

Part 4 - Direction control test
I set the direction wire to High and Low and found the direction toggles as specified. But this "toggle" spec makes me laugh, because it implies that you can not set which direction to start moving.
Anyway, I did a little test and conclude the following spec:
Direction signal High = CCW
Direction signal Low = CW
Part 5 - Using Rpi Pico and MicroPython to PWM control BLDC motor speed
Video = https://youtu.be/-omE34cMXj4
Test function =
def testBldcMotorV1():
print(' Begin testBldcMotor(), ...')
motorConfigDict = {'MotorDriverNum': 2, 'ChannelNum': 0}
motorControlDict = setupBldcMotor(motorConfigDict)
print(' Now start fast, ...')
hold('FourSeconds')
changeBldcMotorSpeed(motorControlDict, 'Normal')
print(' Now normal, ...')
hold('FourSeconds')
changeBldcMotorSpeed(motorControlDict, 'Slow')
print(' Now slow, ...')
hold('FourSeconds')
changeBldcMotorSpeed(motorControlDict, 'Fast')
print(' Now fast again, ...')
hold('FourSeconds')
changeBldcMotorSpeed(motorControlDict, 'Slow')
print(' Now slow again, ...')
hold('FourSeconds')
print(' End testSetupMotor(), ...')
return
Program listing and sample output = https://penzu.com/p/95b30513
Part 6 - Aslong BLDC Postmortem



/ to continue, ...
colors are coded on the ebay auction
... what does that mean? \$\endgroup\$