When I close my window there is still a gap and draft?

There are two main reasons for this problem, the locking mechanism may need adjusting or replacing or the hinges need replacing.