What is this thing ? kind of servomotor ? 3 wires for a mystery ...

Do you know what it was mechanically connected to? It might be sensing position, measuring rotation, doesn't look like a motor but would need to see inside it to really tell..