Welcome! Sorry to say nor do we. You might be lucky and your Arduino is still OK. You must have a resistor or some other means to limit the current. Driving it directly from a pin as you indicated can destroy or damage the processor. Same goes for connecting an output to ground. Without the code we are at a loss.
Have you looked closely at rotating construction vehicle lights? The light does not rotate! The reflector behind the light rotates and either reflects the light or shields the light as it rotates. That way there is no need to twist the wires as the light rotates!
Maybe you want to logically rotate a light. That is to say, all the lights are fixed. Each light is logically enabled, then disabled... then on to the next light.