Looks like root rot to me. Are the black stems soft & squishy?
Better take some cuttings from the green parts before the entire plant is gone.
This probably is a Rhipsalis or epiphyllum, which are air plants and should be grow in a well drained potting mix.