You can say, "Sal gave Jason a headache," but it's a bit odd to say, "Sal gave a headache to Jason."
Podedes dicir "Sal deulle a  Jason dor de cabeza" pero é raro dicir: "Sal deulle  unha dor de cabeza a Jason."