This sounds cliche, but it takes practice. What I did when I took Spanish was test myself on the translations of the word. For example:
perro - dog
gato - cat
tortuga- turtle
I would cover up the english translation and just keep trying the guess it. So basically, I learned by repetition. Hope this helps.