I cant stop my legs from moving and when i do they really hurt?

You have described a condition known as Restless Leg Syndrome. It is a neurological condition that must be addressed by a physician. It is treatable.