Rotted window sills need to be replaced. If the rot has advanced, it is seen simply by looking at it. Do not attempt to repaint or repair it because if it is rotting, it is irreparable.