To treat a sprain or strain, use the RICE acronym:

R = rest the affected area

I  = ice for 20 minutes at a time every few hours but not direct ice to the skin

C = comfortably support the limb

E = elevate the affected limb if possible