Gender in language: what is it and what does it do?

One of the biggest problems that English speakers have when approaching foreign languages is getting their heads around why words suddenly have genders. After all, surely a table is just a table. How can it possibly be a he or a her? I have to say, it’s something that I’m not too sure about myself. I’m not sure where it …