Do a dot-and-cross diagram (including any lone pairs). From this work out the number of electron pairs (a lone pair is one and so is a double bond IIRC). Memorise what shape different numbers of electron pairs result in (e.g. 4 electron pairs without any lone pairs = tetrahedral; 3 without any electron pairs = trigonal; 4 electron pairs including 1 lone pair = pyramidal; 2 electron pairs = linear.) It helps to picture the shape in your head that you get when the electron pairs repel each other and spread out as much as possible. You should also memorise the different bond angles (tetrahedral = 109.5 degrees etc). The reason why lone pairs affect the shape of the molecule is that they repel more strongly and push the other electron pairs closer together, so you minus about 2.5 degrees per lone pair present from the bond angle you'd expect if there weren't any lone pairs.
That's about it. The key is to draw a dot-and-cross diagram first!