Middle ear infections are most commonly caused by bacteria such as Streptococcus pneumoniae and nontypeable Haemophilus influenzae. Additionally, viruses, including those responsible for the common cold, can also contribute to the development of middle ear infections.