Solenoids are basically metal rods moving with in a magnetic field. there are a running fit but it doesn't take much to seize them up. It could be rust (although most metal rods are stainless) or it could be dirt / dust. Try cleaning it as best as possible. But to be honest if it an enclosed solenoid then you either replace it or strip it down and clean it