A and B are similar, however:
B is incorrect because the reason is that: the vertical lines of the cube in B is perpendicular to the ground. Another way to look at this same picture is: the vertical lines of the cube is perpendicular to the longest horizontal piece (the bottom piece) that would be the ground/base. Another way to look at this same picture is: the horizontal lines of the cube are parallel with the ground.
Look at the unfolded piece: you will notice the vertical lines of what would make up the cube is not perpendicular to the longest horizonal line (the ground/base). Another way to examine this is: you will notice the horizontal lines that would make up the cube is not parallel to the longest horizontal line (ground/base).
Therefore, B is eliminated and you are left with A as the right answer.
Hope this helps.