The power winding is probably broken. With the end of stroke switch open, check the resistance across each diode on the coil. The hold winding should read at least 300 ohms. The power winding should read about 3 ohms.
If that checks out ok, the end of stroke switch could be bad.