Sarah Michelle Gellar thinks a relationship needs "work" to succeed as she celebrates more than 20 years of marriage herself.