Zend certified PHP/Magento developer

Insert data into custom table in magento 2

I have created a custom table in database of magento 2. I want to insert some data into this custom table. I want to pass this data from controller to the custom table in magento 2.4. Please can any one guide how can i do that.