It's a solenoid therefore it is electric... and mechanical. Yes it needs to be plugged in. If you are installing that engine in a 2014 you have the wrong assembly. The solenoid controls the variable displacement oil pump and your oil pump will not function correctly if it is disabled.
A forum community dedicated to all Ford Diesel owners and enthusiasts. Come join the discussion about PowerStrokes, performance, modifications, troubleshooting, towing capacity, maintenance, and more!