If fish start spinning, spiralling or barrel rolling through the water they normally have a protozoan infection in the brain. This is most commonly found in dirty tanks or ponds with lots of rotting organic matter and lack of water changes.
The fish in the picture also appears to be skinny and that can be from lack of food, gill flukes, intestinal worms or protozoan infections.
Try doing a 75% water change and gravel clean the substrate each day for a week.
Make sure any new water is free of chlorine/ chloramine before it is added to the tank.
Clean the filter if it hasn't been done in the last 2 weeks.
If there is no improvement after a few water changes then euthanize the fish.