Water intrusion or improper adhesive application will cause the problem you are having.... There is a specific adhesive for the EPDM roof membranes which can be purchased online or at pretty much any dealership. Depending on weather the membrane was stretched beyond repair, you might be lucky enough to remove the trim and carefully pull back the roof section that failed and apply new adhesive, then roll or squeegee the membrane back in place. Not a terribly difficult job, just lots of trim removal and resealing. Use Dicor on the roof joints and Proflex on the trim.