(Beginner Question)Cannot move my character by pressing A or D...no error in compiler still the player stays at its original position..

using UnityEngine;
using System.Collections.Generic;

public class PlayerMove : MonoBehaviour {

private Animator anim;
private SpriteRenderer sr;
private float speed = 3f;

// Use this for initialization
void Awake () {

	anim = GetComponent<Animator>();
	sr = GetComponent<SpriteRenderer>();


}

// Update is called once per frame
void Update () {
	Move ();
}

void Move()
{

	float h = Input.GetAxisRaw("Horizontal");
	// h = 0 no movement
	// h = 1 right movement
	// h = -1 left movement
	Vector3 temp = transform.position;
		// temp stands for a 3 dimesionional temporary vector which stores the instantaneous position of our object...as MOVE() is in update function so it gets updated every frame....

	if (h > 0) {
	
		temp.x += speed * Time.deltaTime;
	
	
	} else if (h < 0) {

		temp.x -= speed * Time.deltaTime;

	} else if (h == 0) 
	
	{

	}

	transform.position = temp;

	}

}

replace else if with just if.

else if is a condition which is only met if the first condition is true.