Colin Kaepernick threw two touchdown passes, Frank Gore had his first 100-yard game of the season and the San Francisco 49ers beat the St. Louis Rams on NFL Network's "Thursday Night Football."