This is the mechanism inside the window called an 'Espag lock' that has broken and needs to be replaced.