My characther only animates if i move to right side Help!

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Move2D : MonoBehaviour
{
public float runSpeed = 5f;
public bool isGrounded = false;
public Animator animator;

// Start is called before the first frame update
void Start()
{
   
}

// Update is called once per frame
void Update()
{
    Jump();
    float moveHorizontal = Input.GetAxis("Horizontal");
    float moveVertical = Input.GetAxis("Vertical");
    animator.SetFloat("speed", moveHorizontal);
    Vector3 movement = new Vector3(Input.GetAxis("Horizontal"), 0f, 0f);
    transform.position += movement * Time.deltaTime * runSpeed;

}

void Jump()
{

    if (Input.GetButtonDown("Jump") && isGrounded == true)
    {
        gameObject.GetComponent<Rigidbody2D>().AddForce(new Vector2(0f, 5f), ForceMode2D.Impulse);
    }
}

}

Guys theres my code, the problem is that if i move to the right side with my characther makes the animation but if i do it to the left side it just do the main animation the idle one i need some help im new on this