What is it called when a tendon tears away from a bone? Can you still heal?

An avulsion... Often a piece of bone will come with it. Can it heal? Sure. Depending on the specifics, it is likely to require surgery to begin the repair process.