It is difficult to answer this question without looking at the same papers you are looking at. Still, I interpret these concepts as fairly different, for reasons I will sketch below.
A function is common in mathematics, and can be written as some mapping $f : X\to Y$ of inputs to outputs. Many algorithms implement the behavior of functions --- they take some batch of inputs, and return outputs. Consider prototypical examples as being "sorting algorithms" or "graph algorithms" or "essentially any algorithm you learn about in an algorithms course".
Functionalities do not necessarily collect all of their inputs before starting processing them. Later inputs can depend on prior inputs, potentially in non-trivial ways. This is in particular important for interactive protocols, where for a two-person protocol with participants $P_1$ and $P_2$, $P_2$'s later inputs can depend on $P_1$'s prior inputs (potentially in an adversarial way). This is somehow the "core" of the idea, where other similar concepts (say streaming algorithms) often are not called functionalities because of the lack of multiple participants.
So functionalities can be seen as the mathematical abstraction which captures the notion of interactive algorithms.
A cryptographic primitive is some tuple of algorithms $(\mathcal{A}_1,\dots,\mathcal{A}_k)$ (which might each individually be a function or a functionality), along with certain conditions they must satisfy.
There are many conditions you can impose, but common ones are things like:
- Correctness
- Soundness
- Indistinguishability of various quantities ("privacy" or "secrecy" conditions)
For example, symmetric-key encryption is often described as a triple of algorithms $(\mathsf{KeyGen}, \mathsf{Enc}, \mathsf{Dec})$ such that:
There is a correctness condition:
$$\forall k\leftarrow\mathsf{KeyGen}(1^\lambda), \forall m\in\mathcal{M}
: (\mathsf{Dec}_k\circ\mathsf{Enc}_k)(m) = m$$
Where $\mathcal{M}$ is the message space of the algorithm.
There is a secrecy condition, namely that for $k\leftarrow\mathsf{KeyGen}(1^\lambda)$, and $m_0\neq m_1$, $\{\mathsf{Enc}_k(m_0)\}$ is (some form of) indistinguishable from $\{\mathsf{Enc}_k(m_1)\}$, where these quantities are distributions over the choice of random coins of encryption.
So we can view each of the individual algorithms as being functionalities, but them combined together with conditions they must fulfil as being a cryptographic primitive that we call "symmetric key encryption".
Note that one could technically view something like a sorting algorithm as a "cryptographic primitive with solely a correctness condition", but this is rather non-standard. We generally assume all algorithms must be correct, so only start describing things as cryptographic primitives when the condition is something like "correct in an adversarial context", or conditions such as "secret" (or other "more than just correct" conditions).
While I believe this viewpoint is fairly common, I don't know if it is universally agreed upon by all authors at all times, so particular questions you have about particular papers would still be easier to answer with a pointer to those papers.