There could be a number of reasons for your tooth still hurting.
Since you stated that the filling was deep, the pulp could be irreversibly inflamed. If that is the case, it would require rot canal therapy. However, there could be other reasons, such as the occlusion being high. I would suggest going back to your dentist and have him/her evaluated the situation.