A transmission works on the movement of fluid. Based on your description it sounds like there's an issue with the filter being plugged etc by something and no fluid moving.

I saw this type of behaviour once when a lot of material would block the filter. On start up, all that material is at the bottom of the pan and the filter can pull some fluid, as the fluid is pulled the material clogs the filter and the trans stops functioning.