Please make sure that you have enabled the star rating option 1st.
Also, you must have the Post rated by the user so that the block works for you.
You can follow the steps below to add the block:
Dashboard > Post/Page > Edit Post/Page > Click on the “+” sign > Add The Top Rated Post Block