look online for the cleaning and removing the cover videos for your model. start with a paper jam under the print head.
with the printer off and the print head off the home stop see if it moves fine. hp printers some of them use a opti sensor for home and end position. if the sensor fails or the logic board the printer most times makes grinding and slamming sounds.