The ER plays a critical role in the storage and release of calcium ions, which are important for cell signaling and muscle contraction.