The person who has legal authority to make funeral arrangements is the Executor – the person named in the will to administer the estate.
However, the responsibility can pass by mutual agreement to the next of kin or family friend.