Other infections in the body may sometimes spread to the bloodstream and cause endocarditis.