Why USB Ports sometimes stop working.

I have connected all the devices with USB data cable to my PC. Sometimes any USB interface stops its proper connectivity and shows that not connecting or some hardware issue.
I also tried to segregate the data drives and USB port devices and interchanged their ports but the problems occur again and again after some time.
