There are several possibilities, all potentially rather serious, ranging from a threatened brain stem stroke
to a problem in the spinal cord in the neck, to blood vessel problems in the legs.
I urge you to see your family doctor or emergency room quickly. Those symptoms should not be ignored. They should be evaluated carefully urgently.