Yeah, that was supposed to be plugged in as you found out yourself! LOL!
In order to take the unit apart, you have to unplug it as a 1st step (the housing cannot be removed from the pump motor while that's connected)... someone must have taken it apart prior to you acquiring the unit, and...