Generally speaking, people don’t set mach up to run their spindle and have a separate control to dial in the required speed…. Not always the case so you need to check.
Trace the wiring from the spindle to where it terminate and take a photo or describe what is what may get you some help.

Have you any info on the machine you have bought… photos etc?