How to do 3d movement?

How do I do 3d movement, where the character moves towards where its rotated?

Have you even looked up your problem? I believe there’s 3d examples and videos that show the basics of 3d games