Phase Transition And Domain Wall Control In Multistable Metamaterials