In the first case, the force and displacement are perpendicular to each other, so work done is zero.
In the second case, the force and displacement are in the same direction, so the work done is positive.
In the third case, the force and displacement are in the opposite direction, so the work done is negative.