Which state do i pay taxes to if i receive a retirement from one and live in another

Do I pay Iowa for the retirement I receive from an Iowa source or do I pay NC where I live now?