Printing only top slice of project

When downloading a g-code file the printer works fine. When importing an STL file into Cura and slicing it the resulting g-code file does not work properly.
It appears to print only the top layer of the project. Any help solving this problem would be appreciated. I am new to 3D printing.