Both coefficients assess how well a monotonic function describes the relationship between two variables: The Pearson correlation assumes a linear relationship between the variables, and the Spearman correlation takes only rank into account.
spearman's Table 5 Examples of two variants of human error analysis, a strict and a flexible one; the marked errors are detected with respect to the reference, whereas no errors are detected when the error analysis is more flexible.