Why can't i move after switching scene

I am having this very bizarre issue when loading a scene. I am building a game that has multiple levels and i need a way to switch between them. I have a script that loads the scene but after the my player controler stops working and i cant move
this is the scene switching code
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class finish : MonoBehaviour
    bool done = false; 
    private void OnTriggerEnter(Collider other) {
        if (other.gameObject.layer == 7 && done == false) {
            done = true;
            SceneManager.LoadSceneAsync(SceneManager.GetActiveScene().buildIndex + 1);

How does your player get its input?
I personally don’t believe your Finish is cause this issue.