sounds like a short
on most pumps, if not in warranty for replacement it may just be th end of the road and time for a new pump.
Many times when this happens you can get them to go for extended periods of time by hitting them or pulling back and forth on the cord until it connects, but in many cases they will at some point start dumping electricity into the water.