sg90 servo unintended movement

I disconnect then reconnect the power and ground lines its moves momentarily randomly.

Don't do that!

All connected modules should be powered up simultaneously, and wiring should be changed only when the power is off. You can easily destroy your Arduino if you do not follow this rule.