The volume \( V \) of a sphere is given by the formula:
\[
V = \frac{4}{3} \pi r^3
\]
Substituting \( r = 3 \) cm into the formula:
\[
V = \frac{4}{3} \pi (3)^3 = \frac{4}{3} \pi \times 27 = 36\pi \, \text{cm}^3
\]
Final Answer: \( \frac{4}{3} \pi r^3 \) cm\(^3\).