Check your attitude! Your children need a relationship with both parents.
Never engage in conflict with your ex-spouse in front of your children.
If your children refuse to see their other parent, speak to your children if they're old enough. If necessary, consult with a mental health professional. If you are on good terms with your ex, discuss the problem with him or her. If you are at war, talk to your lawyer.