FullSimplify[ Cos[phi] Cos[theta] + Sin[phi] Sin[theta]]

FullSimplify[ Cos[theta] Sin[phi] - Cos[phi] Sin[theta]]