Toothache can arise from various factors, including tooth decay, infections in the jaw or tooth, gum disease, or injuries.