How do I use path finding

Does anybody know how to use path finding? when I use the move towards behavior it only goes straight forward without using past finding, if anybody knows, can someone please tell me thank you.