sentences:  He served as colonel on the frontier and at Fort Erie during the War of 1812.He was a major general of the New York State Infantry from 1828 to 1830.Brooks was elected as a Democratic-Republican to the 14th United States Congress, holding office from March 4, 1815, to March 3, 1817.