heating element nut

The heating element nut on my dishwasher is split. How do I remove it? How do I take the wire off the heating element to free the brass nut? Thnk you