Below is the mechanism of the reduction of an nitrile to amine using LiAlH4 (LAH). I have kept it simple by not going into much details.
Transfer of a hydride ion from lithium aluminum hydride to the carbon atom of the nitrile generates an imine intermediate, which is in equilibrium with the corresponding imino alanate.
The imino alanate converts to the amino alanate after adddition of an additional hydride ion.
Hydrolysis yields the primary amine.