As Ruthi says, 'I'm not sure' can stand alone as an answer, whereas 'I'm not sure of' can't.
And as Judy says, the preposition 'of' must refer to something. There must be an object for this sentence, for example 'I'm not sure of the answer to this question'.
An example of a sentence ending with these words is:
'There are many things I'm not sure of'.
The 'of' refers to 'many things'. The sentence means that you are not sure of many things.
Or, you could say:
'Could you check my translation, please? There are some words in it that I'm not sure of.'
The word 'of' at the end refers back to the object 'some words' i.e. you are not sure of some of the words in the translation.