You should have a solid definition for using enclosure.
You have only surface body. So you may be missing some surfaces or the faces are not connected.
Please use different tools like fill, stitch, missing faces etc. to create a solid and then use enclosure.
If this helps, please mark this post as 'Is Solution' to help others.
Guidelines on the Student Community
How to access ANSYS help links