Two types of pronunciation problems and what to do about them

Many assume that when someone gets pronunciation wrong, they haven’t learnt how to produce that sound correctly yet. This is not always the case, though, because there is another reason that is perhaps even more likely to be the cause of the problem! What are the two types of problems and what can we do about them?