I HAVE CHECKED MY GRAMMAR BOOKS BEFORE POSTING
(1) Subject: To speak English is important.
(2) Subjective complement: My goal is to understand grammar. (Refers to "goal")
(3) Direct object: I want to speak English fluently.
(4) Appositive: It is important to speak English. (Refers to "It")
(5) Modifier of noun: He