The Law of Cosines can be used in either SSS or SAS situations.
If you know the three sides of a triangle, you can use the Law of Cosines to find any of the angles.
If you know two sides and the included angle of a triangle, you can use the Law of Cosines to find the third side.