Both 'confident' and 'sure' can describe the feeling when somebody firmly believes something. It states an opinion.
"I am sure/confident that we can finish on time."
However, 'sure' can also be used to state that something is definitely true - not an opinion, but a fact.
"The sun is sure to come up tomorrow."
"It is icy outside. The roads are sure to be slippery."