Why is work a scalar and not a vector?
It's defined as a dot-product (or scalar product) of force and displacement, both of which are vectors.
A scalar product of two vectors gives a scalar result (aptly named!).
$$dW = \vec{F}\cdot\vec{S} = {\|F\|}{\|S\|}\cos\theta$$ ($\theta$ being the angle between the vectors).
No direction, only magnitude.
Thinking logically, what would be the direction of work, anyway? You may say, "In the direction of displacement!", but then why not in the direction of force? And if you say the direction of both, well then, it isn't always the same! A force can do work on a body even displacing at an angle to the direction of force ($\theta$!).
=>Note that when $\theta$ is $90^\circ$, the result will be zero ($\cos 90^\circ = 0$). When force and displacement are perpendicular, the force does no work on the body!
Edit: As said by @anna: Please also note that work is part of the energy in a system (work and energy) and energy is a scalar. If it were not so we would not be talking of "conservation of energy" as an experimental observation. Energy is a scalar.
Another way to see this is to test how it transforms under rotation of coordinate axes. Vectors and scalars have distinct transformation patterns. For simplicity if we assume a three dimensional Cartesian coordinate system then knowing that both force and displacement are vectors, i.e., their components transform under same rotation as: $$A_i \rightarrow A_i^{\prime}= \sum_{j=1}^{3}a_{ij}A_j$$ where the $a_{ij}$'s are elements of an orthogonal matrix with determinant=+1, one can check that work done $W \rightarrow W^{\prime}=W$, i.e., work done remains invariant under rotation of coordinate axes. In other words, work done due to displacement caused by a force is a scalar quantity.