How do I make an object move in the direction its facing?

I want the object to move in 3D. I’m a beginner so if anyone could help me, that’d be great. Thank you!

transform.localPosition += Vector3.forward;