When there is a need for shifting towards appropriate and prominent process then you use Scrum. When you need to improve the process that is running provided that there are not many changes then Kanban is used.