We present a multifunctional on-chip optical device utilizing epsilon-near-zero (ENZ) metamaterials, allowing precise beam control through phase modulation. This design acts as both an all-optical switch and a tunable beam splitter, providing compact and scalable solutions for integrated photonic applications.