If you have a single wheel and a rope, a pulley helps you reverse the direction of your lifting force. So, as in the picture below, you pull the rope down to lift the weight up. If you want to lift something that weighs 100kg, you have to pull down with a force equivalent to 100kg, which is 1000N (newtons). If you want to raise the weight 1m into the air, you have to pull the loose end of the rope a total distance of 1m at the other end.
Now if you add more wheels, and loop the rope around them, you can reduce the effort you need to lift the weight. Suppose you have two wheels and a rope looped around them, as in the figure below. The 100kg mass (1000 newton weight) is now effectively supported by two sections of the same rope (the two strands on the left) instead of just one (ignoring the loose end of the rope you're pulling with), and this means you can lift it by pulling with a force of just 500 newtons—half as much! That's why we say a pulley with two wheels, and the rope wrapped around it this way, gives a mechanical advantage (ME) of two.