When to use standard error

Hi, Could someone please explain to me once and for all when standard error should be used vs when just s.d.s should be used for calculating confidence intervals etc? Many thanks in advance.

if its a sample mean, use se, sd for population mean