Moment of inertia comes into play:
in translatory motion
in rotatory motion
in vibratory motion
when the body is permanently at rest
in rotational motion moment of inertia is equivalent to mass in translatory motion