Expanding my comment to an answer, to show an alternative approach.
Let $X_1, X_2, \ldots, X_n$ be i.i.d random variables, each with the distribution
$$P(X_k = 1) = p, \qquad P(X_k = 0) = 1-p$$
Define $X = X_1 + X_2 + \ldots + X_n$. Note that for $j \in \{0, 1, \ldots, n\}$, we have $X = j$ if and only if exactly $j$ of the $X_k$'s are equal to $1$. This event has probability
$$\begin{aligned}
P(X = j)& = P(\text{exactly $j$ of the $X_k$'s equal $1$ and the remaining $n-j$ equal $0$}) \\
&= {n \choose j}p^j (1-p)^{n-j}\\
\end{aligned}$$
which shows that $X$ has the same probability distribution as the one in the OP. We can now easily calculate $E[X]$ and $\operatorname{Var}[X]$ as follows.
First, note that for each $X_k$, we have
$$E[X_k] = 1P(X_k = 1) + 0P(X_k = 0) = 1p + 0(1-p) = p$$
and
$$E[{X_k}^2] = 1^2P(X_k = 1) + 0^2P(X_k = 0) = 1^2 p + 0^2(1-p) = p$$
and consequently,
$$\operatorname{Var}[X_k] = E[{X_j}^2] - E[X_j]^2 = p - p^2$$
Then, since the $X_k$'s are i.i.d., we have
$$E[X] = E[X_1] + E[X_2] + \cdots + E[X_n] = nE[X_1] = np$$
and
$$\operatorname{Var}[X] = \operatorname{Var}[X_1] + \operatorname{Var}[X_2] + \cdots + \operatorname{Var}[X_n] = n\operatorname{Var}[X_1] = n(p-p^2)$$