Hi @touseefk2181136 ,
The error you have posted is too generic.
You need to check logs to find what could be causing it, possible reasons could be
1.) Your bundle is not active, or the sling model is not deployed (check your bundle status)
2.) Some mandatory injection of some services/classes in the model is not satisfied which is causing it not to be initialized in the first place (you can find more details in error logs).
Check if there are relevant errors in the logs, you can add some excerpts here for better answers?
Hope this helps!
Regards,
Nitesh