Older Versions of After Effects let you enable "deprecated File Formats" in your user preferences. Newer After Effects Versions don't natively support the MP4 Container with the H.264 Codec. You can, however, use the .mov container with the H.264 Codec in the Output Format Settings in your Render Queue.