Nowadays, 5G network is considered to be one of the main pillars of various industries, including the Internet of Things (IoT), smart cities, virtual reality, and many more. Unlike previous network generations, 5G utilizes complex digital technologies such as massive Multiple Input Multiple Output (mMIMO) and runs over higher radio frequencies. The introduction of new technologies and advanced features in the 5G network raises new challenges for network operators, and merging Artificial Intelligence (AI) is one of the effective solutions to address these complexities. However, AI-enabled 5G network engenders security concerns and requires improvement to meet the standardization and qualification of the new network generation. To mitigate these dilemmas, Blockchain must be integrated. Blockchain, as a decentralized methodology provides a secure sharing of information and resources among various nodes of 5G environments. Blockchain can support other technologies, such as AI-based 5G, to create smarter, more efficient, and secure cellular networks. In this paper, we present a comprehensive intelligence and secure data analytics framework for 5G networks based on the convergence of Blockchain and AI named "Block5GIntell". We depict the applications of Blockchain and AI on 5G networks separately and we argue on the support that Blockchain can provide for AI to create smart and secure 5G networks relying on our proposed framework. To support our proposition, we present an energy-saving case study using Blockchain for AI-enabled 5G. The simulation shows an overall 20% decrease in energy consumption at the RAN level.