Unselected vertices and edges move along wth selected ones
Most likely you've turned on proportional editing.

To turn it off press the O key.

Or use the proportional editing icon on the bottom of the screen:



Follow this link for more information on proportional editing