They have two types of component, ring laser gyros and accelerometers. One of each for each axis. The RLGs sense the attitude of the plane and the accelerometers sense which way (and how fast) it's accelerating. From these six parameters the IRS extrapolates attitude, position and speed.