A brain abscess occurs from an infection in nearby structures such as the middle ear,sinuses,or teeth,or from an infection in other organs.A brain abscess can develop after intracranial surgery or head trauma.It can be secondary to such disorders as bacterial endocarditis,bacteremia,and pulmonary or abdominal infections