First of all move the person indoors or into the shade. DON'T let the sun go on burning.
Give the person a cold drink and cool their skin by sponging with cold water.
If the sunburn is quite mild dab on aftersun or calamine lotion. Call a doctor if the skin is broken or blistered.