You have to watch this type of boards closely. They might have same pin number on different ports. They might have positive or negative output and if you supply more than 5 Volts to the board (like you said 24V) they might require resistors between the board and stepper drivers. In additional- some of these boards have open collector outputs without power .
I think your board needs separate 5Volts for the drivers and 12-24 Volts for PWM
Usually it would be in description but sometimes they send the board with generic descriptions for several different boards and you have to figure out which one to use. Or hey send you the wrong one… It happens. But in general it comes with config file for Mach3 . You run it and puts pins and ports in a right order. You still have to check all and do motor tuning.
If you post a detailed diagram how you’ve connected the board and your settings in Mach then it would be possible to identify the problem.
https://ae01.alicdn.com/kf/Sb349ab22...=800&hash=1600
https://ae01.alicdn.com/kf/S91daad2a...1000&hash=2000