Prophecy has ended, because Muhammad (alaihi salatu wa salam) is the final prophet, there will be no prophet after him. Thus the revelation is complete and perfect. However, Allah will still communicate with His servants through the form of dreams, visions, inspiration. However, He will not reveal any new scripture or law, because Islam is complete. Many pious Muslims receive inspiration and communication of Allah, even to this day it is possible if Allah wills. For example, the second khalifa, Umar (may Allah be pleased with him) was such a person who constantly received divine inspiration and dreams from Allah. These days, it is something rare because the Muslims have become lax and corruption has spread everywhere, there are very few truly righteous people. Thus this blessing has all but dissapeared. Insha Allah it will be revived.