With very few exceptions, everyone is born able to use the sounds and rhythm of any language. As a child you learned the sound system you heard every day. That first-language pattern stays with you.
Why do I have an accent?
When you learn English, you naturally apply the sounds and rhythm of your first language. English does not use the same set. That mismatch is the accent. It is not a lack of intelligence. It is a sound system doing what it was trained to do.
What an accent actually is
An accent is the transfer of vowels, consonants, and stress from language one onto language two. Listeners who grew up with American English expect American patterns. When they hear yours, they may miss a word even when your grammar is right. For a longer take on that split, see pronunciation versus vocabulary.
What you can do about it
You cannot erase your first language, and you do not need to. You can train new mouth habits for the English sounds that hide your meaning. Slow a word down. Say it three times. Then say it in a sentence. Daily work like these pronunciation tips is enough to start.
If you want guided practice, start a free trial at pronunciationpro.com/trial/.