My hips sway too much while walking (like females) I drag my legs while walking causing pain my thighs rub each other while walking causing rashes?

Many causes. This can be caused by a variety of syndromes, including muscle weakness, muscular dystrophy, myopathy, neuropathy, spinal cord injury, brain injury and similar. A neurologist or physiatrist can usually diagnose the problem after a thorough history and physical exam.
Y hips sway walking. I am not sure about your body weight. If you are overweight, losing weight by diet and exercise may alleviate some of the problems. Consulting an orthopedic surgeon in your area would help, if body weight is not the issue.