Strains occur due to an injury to a muscle or tendon- fibrous tissue that attaches muscle to bone. Sprains occur when the ligament (connecting the end of one bone to another) is hurt.
For both injuries, the answer is usually RICE: rest, ice, compression, and elevation.