How Can I Unlink Two Objects?
In the picture, the two parts are both selected.  If you came straight out of Edit Mode to Object Mode and then tried to move one, you will of course move both while they're both selected.
Press A to toggle selection until nothing is selected, then right click on the one you want to move.