The first thing that I would check is the trigger configuration of your deployed function. To be sure that you do the right configuration of the trigger, you should manually create a function inside Azure Portal and configure the trigger to the Event Hub. Check if the function is triggered as expected. Once it works, try to move each part of the configuration and code to the test function until you identify the issue.
I common problem is that you have the same consumer group for your Event Hub for local and deployed functions. Ensure that only the deployed function has a dedicated consumer group.
Refs:
https://learn.microsoft.com/en-us/azure/event-hubs/event-hubs-features
https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-event-hubs-trigger?tabs=csharp