Definition (score function)
Let $\sb{f(\cdot ,θ)}{θ\in Θ}$ be a statistical model, $Θ\subseteq \R^d$ and $X_1, \ldots, X_n$ be iid copies of $X$.
The score function is a random vector $$ \begin{align*} S_n(θ) := \pdd{θ} l_n(θ) ={}& \sum_{i=1}^{n} \pdd{θ} \log f(X_i, θ), \qquad θ \in \op{int}(Θ) \end{align*} $$ where $l_n(θ) := \sum_{i=1}^{n} \log f(X_i, θ)$ is the log-likelihood function.
The maximum likelihood estimator is a zero of $S_n$.
Under regularity conditions (namely $\int_{\mathcal{X}} \pdfd{f}{θ} \d x = \pdd{θ} \int_{\mathcal{X}} f \d x$), $$ \begin{align*} \expect_θ S_n(θ) = 0. \end{align*} $$ (Proof)