Can't add keyframe

When I add a new layer, I can’t add a keyframe or use the transform tool to animate. When I switch off the animate button, I can use the transform tool. Why is this happening?