I presume you are asking about these two phrases, for example:
I want to go home.
I wanna go home.
The first is correct, normal English. The second is not.
'wanna' is not a word. It is a transcription of what you hear when somebody is speaking fast. It is NOT the same as 'can't' or 'I'm' or 'doesn't'. These are correct standard contractions - 'wanna' (and 'gotta' and 'gonna') are not. Educated native speakers never write these forms.
The only places where it is (just about) ok to write 'wanna' is in song lyrics and maybe cartoon dialogue - because these are imitations of speech. But you might notice that it's not the intelligent people in cartoons who have 'wanna' coming out of their mouths in speech bubbles - it's usually spoilt and annoying children.
If you write 'I wanna', it's the same as saying 'I'm lazy, uneducated and a little bit rude. My English is bad and I don't care'.
I'm sure that you don't want to give that impression to people, so please don't use it. If you want people to take you seriously, you should write normal English.