Punishment alone is not an effective solution. It may make them more distant from you. Try to motivate them through love and by understanding the challenges faced by them. Show them your support and love.